SetUp and TearDown | NUnit Docs
docs.nunit.org › setup-teardown › indexIf any setup method throws an exception, no further setups are called. Teardown methods (again, both types) are called on derived classes first, then on the base class. The teardown methods at any level in the inheritance hierarchy will be called only if a setup method at the same level was called. The following example illustrates the difference.
SetUp | NUnit Docs
docs.nunit.org › attributes › setupSetUp | NUnit Docs SetUp This attribute is used inside a Test Fixture to provide a common set of functions that are performed just before each test method is called. SetUp methods may be either static or instance methods and you may define more than one of them in a fixture.