title: NUnit. Passing parameters into teardown method
body: <p>I'm using NUnit.  I have my test method defined likeso:</p>
  
  <pre><code>[Test]
  [TestCase("Fred", "Bloggs")]
  [TestCase("Joe", "Smith")]
  public void MyUnitTest(string firstName, string lastName)
  {
      ...
  }
  </code></pre>
  
  <p>After a TestCase has finished, it goes into the TearDown Method.  What'd like to do, is have those TestCase parameters that are passed into the test method but also passed into the TearDown method.  </p>
  
  <p>Something like this:</p>
  
  <pre><code>[TearDown]
  public void TearDown(string firstName, string lastName)
  {
    ...
  }
  </code></pre>
  
  <p>I'm hoping that NUnit supports this out-of-the-box.  Otherwise, I need to write bespoke code in the test method to store the test data in a collection.  Then that collection is used in the TearDown method.</p>
  
  <p>If anyone has any thoughts .. would be great!
  Thanks.
  Christian</p>