Class TestNotSupportedOnAttribute
Marks a test as unsupported on the specified platforms. Tests decorated with this attribute will be skipped on the listed platforms. 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 TestNotSupportedOnAttribute : IgnoreGraphicsTestAttribute, ITestAction
Constructors
TestNotSupportedOnAttribute(string, string, params object[])
Initializes a new instance of the TestNotSupportedOnAttribute class.
Declaration
public TestNotSupportedOnAttribute(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 unsupported. |
| object[] | platforms | Platform enums on which the test cannot run. Each must be declared as a DataType. |
Implements
NUnit.Framework.ITestAction