nunit TearDown


Example

This attribute is used to identify a method that is called immediately after each tests, it will be called even if there is any error, this is the place we can dispose our objects.

 [TearDown]
 public void CleanAfterEveryTest()
 {
            
 }