Class BeforeAfterTestAttribute
Default implementation of IBeforeAfterTestAttribute.
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public abstract class BeforeAfterTestAttribute : Attribute, IBeforeAfterTestAttribute
- Inheritance
-
BeforeAfterTestAttribute
- Implements
- Derived
- Inherited Members
Methods
After(MethodInfo, IXunitTest)
This method is called after the test method is executed.
public virtual 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.
public virtual void Before(MethodInfo methodUnderTest, IXunitTest test)
Parameters
methodUnderTestMethodInfoThe method under test
testIXunitTestThe current ITest