Class PerformanceAttribute
Test attribute to specify a performance test. It will add category "Performance" to test properties.
Namespace: Unity.PerformanceTesting
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class PerformanceAttribute : CategoryAttribute, IOuterUnityTestAction
Constructors
PerformanceAttribute()
Adds performance attribute to a test method.
Declaration
public PerformanceAttribute()
Methods
AfterTest(ITest)
Executed after a test execution.
Declaration
public IEnumerator AfterTest(ITest test)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | Executed test. |
Returns
Type | Description |
---|---|
IEnumerator |
BeforeTest(ITest)
Executed before a test execution.
Declaration
public IEnumerator BeforeTest(ITest test)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | Test to execute. |
Returns
Type | Description |
---|---|
IEnumerator |