xUnit.net
Public Member Functions | List of all members
Xunit.Sdk.BeforeAfterTestAttribute Class Reference

Base attribute which indicates a test method interception (allows code to be run before and after the test is run). More...

Inheritance diagram for Xunit.Sdk.BeforeAfterTestAttribute:

Public Member Functions

virtual void After (MethodInfo methodUnderTest)
 This method is called after the test method is executed. More...
 
virtual void Before (MethodInfo methodUnderTest)
 This method is called before the test method is executed. More...
 

Detailed Description

Base attribute which indicates a test method interception (allows code to be run before and after the test is run).

Member Function Documentation

◆ After()

virtual void Xunit.Sdk.BeforeAfterTestAttribute.After ( MethodInfo  methodUnderTest)
inlinevirtual

This method is called after the test method is executed.

Parameters
methodUnderTestThe method under test

◆ Before()

virtual void Xunit.Sdk.BeforeAfterTestAttribute.Before ( MethodInfo  methodUnderTest)
inlinevirtual

This method is called before the test method is executed.

Parameters
methodUnderTestThe method under test

The documentation for this class was generated from the following file: