Pass a List<SomeObject> paramter to NUnit Test
<p>I am working on a NUnit test that needs to be able to accept a List as a parameter, and I am wondering how can I pass that list as a parameter?</p>

<p>I can pass in each user individually to the unit test like so:</p>

<pre><code>[Test, TestCaseSource("GetUsers")]        
public void MyExample_Test(User user)
{   
    Asset.Pass();
}

private static List&lt;User&gt;GetUsers()
{
    List&lt;User&gt;users=new List&lt;User&gt;();
    users.Add(new User());
    users.Add(new User());
    users.Add(new User());
    users.Add(new User());

    return users;
}
</code></pre>

<p>But I need to pass in <code>List&lt;User&gt;</code> as WHOLE.</p>