title: Unit Testing with ForEach
body: <p>Assuming:
  "personList" is a list of Person objects</p>
  
  <p>"agent" is an object that can provide activity about Shop objects (a property of Person)</p>
  
  <p>"GetShopActivity" returns a list of shopping activity objects for a Person</p>
  
  <p>I have this line in a test project:</p>
  
  <pre><code>personList.ForEach(p =&gt; new List&lt;Person&gt;(p.Shops)
      .ForEach(t=&gt; Assert.IsNotNull(agent.GetShopActivity(t, startDate, endDate))));
  </code></pre>
  
  <p>How can I make it better?</p>