title: Loop inside a unit test
body: <p>Can we have a loop inside a unit test?</p>
  
  <p>My method returns an <code>IEnumerable&lt;IEnumerable&gt;</code>, I would like to unit test this logic where the <code>IEnumerable&lt;IEnumerable&gt;</code> is created. Basically I wanna test if the count of elements in the <code>IEnumerable</code> are as expected.</p>
  
  <p>I cannot figure out an alternate way to test the inner <code>IEnumerable</code> without having a looping statement. Please let me know if this is a good practice.</p>