Table of Contents

Class BeforeAfterTestAttribute

Namespace
Xunit.v3
Assembly
xunit.v3.core.aot.dll

Indicates an attribute which is involved in test interception (allows code to be run before and after a test is run).

[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public abstract class BeforeAfterTestAttribute : Attribute
Inheritance
BeforeAfterTestAttribute
Inherited Members

Methods

After(ICodeGenTest)

This method is called after the test is executed.

Before(ICodeGenTest)

This method is called before the test is executed.