Class RequirePlatformSupportAttribute
The RequirePlatformSupportAttribute attribute can be applied to test assemblies (will affect every test in the assembly), fixtures (will
affect every test in the fixture), or to individual test methods.
Namespace: UnityEditor.TestTools
Syntax
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
public class RequirePlatformSupportAttribute : NUnitAttribute, IApplyToTest
Constructors
RequirePlatformSupportAttribute(BuildTarget[])
Initializes and returns an instance of RequirePlatformSupportAttribute.
Declaration
public RequirePlatformSupportAttribute(params BuildTarget[] platforms)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildTarget[] | platforms | The BuildTarget platform to run the test on. |
Properties
platforms
The build target platform, see BuildTarget.
Declaration
public BuildTarget[] platforms { get; }
Property Value
| Type | Description |
|---|---|
| BuildTarget[] | The BuildTarget platform to run the test on. |