title: C# NUnit TestCaseSource Passing Parameter
body: <p>I have the following method which generates a set of test cases!</p>
  
  <pre><code>public IEnumerable&lt;ResultsOfCallMyMethod&gt; PrepareTestCases(param1)
  {
      foreach (string entry in entries)
      {
          yield return callMyMethod(param1);
      }
  }
  </code></pre>
  
  <p>How can I pass param which is of type string as a parameter to my <code>PrepareTestCases()</code> method?</p>
  
  <p>Is there a way to do the following:</p>
  
  <pre><code>[Test, Category("Integration"), TestCaseSource("PrepareTestCases", param1)]
  public void TestRun(ResultsOfCallMyMethod testData)
  {
      // do something!
  }
  </code></pre>