<PackageReference Include="NUnit" Version="2.7.0" />

TearDownAttribute

public class TearDownAttribute : Attribute
Attribute used in a TestFixture to identify a method that is called immediately after each test is run. It is also used in a SetUpFixture to identify the method that is called once, after all subordinate tests have run. In either case, the method is guaranteed to be called, even if an exception is thrown.