Console window now showing
Posted
by
CoffeeAddict
on Stack Overflow
See other posts from Stack Overflow
or by CoffeeAddict
Published on 2012-12-09T04:59:20Z
Indexed on
2012/12/09
5:03 UTC
Read the original article
Hit count: 130
c#
I have this in one of my NUnit tests. I'm using R# to step through my test. The console window is not popping up to show me the contents for that foreach loop...not sure what I'm missing but yes, there is data for it to loop through so it's not like there's no data here
foreach (PostEntry post in posts)
{
Console.WriteLine("id: " + post.Id);
Console.WriteLine("title: " + post.Title);
Console.WriteLine("body: " + post.Body);
Console.ReadLine();
}
© Stack Overflow or respective owner