I have a test fixture class ABC which inherits from Base Class with name BaseTest. Both BaseTest and ABC has testfixture teardown and testfixture setup defined.
I want to know which TestFixtureSetUp and TestFixtureTearDown gets executed first. Please see the code below:
public class BaseTest
{
[TestFixtureSetup]
public void BaseSetup()
{
}
[TestFixtureTearDown]
public void BaseTearDown()
{
}
}
public class ABC : BaseTest
{
[TestFixtureSetup]
public void Setup()
{
}
[TestFixtureTearDown]
public void TearDown()
{
}
}
What i want to know is whether BaseTearDown gets executed first or TearDown?