title: Setup a complicated row test with nunit and TestCaseSource and TestCaseData
body: <p>For every expect return value like 2 or 4 I want to pass this value as parameter for the unit test method. But I get an exception that the parameters are not correct. When I remove the countExpected parameter the unit test runs fine I just can not assert the countExpected...</p>
  
  <p>Is this scenario possible at all with NUnit?</p>
  
  <pre><code>[Test, TestCaseSource("VisibleWeekDays")]
  public void Test(DayOfWeek[] visibleWeekDaysSetup, int countExpected)
  {
      // ARRANGE
  
      // ACT
  
      // ASSERT
      Assert.That(periods.Count(),Is.EqualTo(countExpected));
  }
  
  private static IEnumerable&lt;TestCaseData&gt; VisibleWeekDays
  {
      get
      {
          yield return new TestCaseData(new DayOfWeek[] {DayOfWeek.Sunday}).Returns(2);
          yield return new TestCaseData(new DayOfWeek[] {DayOfWeek.Sunday, DayOfWeek.Monday}).Returns(4);
          // more days...
      }
  }
  </code></pre>