Class UnityPlatformAttribute
Use this attribute to define a specific set of platforms you want or do not want your test(s) to run on.
You can use this attribute on the test method, test class, or test assembly level. Use the supported RuntimeRuntimePlatform
values along with or without the include or exclude properties as parameters to the Platform attribute constructor.
The test(s) skips if the current target platform is:
- Not explicitly specified in the included platforms list
- In the excluded platforms list
Implements
Namespace: UnityEngine .TestTools
Assembly: solution.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true)]
public class UnityPlatformAttribute : NUnitAttribute, IApplyToTest
Constructors
Name | Description |
---|---|
Unity |
Constructs a new instance of the Unity |
Unity |
Constructs a new instance of the Unity |
Properties
Name | Description |
---|---|
exclude | List the platforms you do not want to have your tests run on. |
include | A subset of platforms you need to have your tests run on. |
Methods
Name | Description |
---|---|
Apply |
Modifies a test as defined for the specific attribute. |