Interface IBeforeAfterTestAttribute
Indicates an attribute which is involved in test method interception (allows code to be run before and after a test is run).
public interface IBeforeAfterTestAttribute
Methods
After(MethodInfo, IXunitTest)
This method is called after the test method is executed.
void After(MethodInfo methodUnderTest, IXunitTest test)
Parameters
methodUnderTestMethodInfoThe method under test
testIXunitTestThe current ITest
Before(MethodInfo, IXunitTest)
This method is called before the test method is executed.
void Before(MethodInfo methodUnderTest, IXunitTest test)
Parameters
methodUnderTestMethodInfoThe method under test
testIXunitTestThe current ITest