Class TestOnlySupportedOnAttribute
Marks a test as only supported on the specified platforms. Tests decorated with this attribute will be skipped on all platforms except those listed. Unlike IgnoreGraphicsTestAttribute, this ignore cannot be overridden, since the test would never succeed on an incompatible platform.
Implements
ITestAction
Inherited Members
Namespace: UnityEngine.TestTools.Graphics
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true)]
public class TestOnlySupportedOnAttribute : IgnoreGraphicsTestAttribute, ITestAction
Constructors
TestOnlySupportedOnAttribute(string, string, params object[])
Initializes a new instance of the TestOnlySupportedOnAttribute class.
Declaration
public TestOnlySupportedOnAttribute(string pattern, string reason, params object[] platforms)
Parameters
| Type | Name | Description |
|---|---|---|
| string | pattern | The pattern to match against the test case name. |
| string | reason | The reason the test is restricted to these platforms. |
| object[] | platforms | Platform enums on which the test can run. Each must be declared as a DataType. |
Implements
NUnit.Framework.ITestAction