Class UseGraphicsTestCasesAttribute
Marks a test which takes GraphicsTestCase
instances as wanting to have them generated automatically by
the scene/reference-image management feature in the framework.
Inheritance
NUnitAttribute
CombiningStrategyAttribute
UnityTestAttribute
UseGraphicsTestCasesAttribute
Implements
ISimpleTestBuilder
IImplyFixture
IApplyToTest
ITestBuilder
Inherited Members
UnityTestAttribute.ApplyToTest(Test)
CombiningStrategyAttribute.BuildFrom(IMethodInfo, Test)
Namespace: UnityEngine.TestTools.Graphics
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
public class UseGraphicsTestCasesAttribute : UnityTestAttribute, ISimpleTestBuilder, IImplyFixture, IApplyToTest, ITestBuilder
Constructors
UseGraphicsTestCasesAttribute()
Declaration
public UseGraphicsTestCasesAttribute()
UseGraphicsTestCasesAttribute(string)
Declaration
public UseGraphicsTestCasesAttribute(string referenceImagePath)
Parameters
Type | Name | Description |
---|---|---|
string | referenceImagePath |
Properties
ColorSpace
Declaration
public static ColorSpace ColorSpace { get; }
Property Value
Type | Description |
---|---|
ColorSpace |
GraphicsDevice
Declaration
public static GraphicsDeviceType GraphicsDevice { get; }
Property Value
Type | Description |
---|---|
GraphicsDeviceType |
LoadedXRDevice
Declaration
public static string LoadedXRDevice { get; }
Property Value
Type | Description |
---|---|
string |
Platform
Declaration
public static RuntimePlatform Platform { get; }
Property Value
Type | Description |
---|---|
RuntimePlatform |
Provider
The IGraphicsTestCaseProvider
which will be used to generate the GraphicsTestCase
instances for the tests.
Declaration
public IGraphicsTestCaseProvider Provider { get; }
Property Value
Type | Description |
---|---|
IGraphicsTestCaseProvider |
Methods
GetCaseFromScenePath(string, string)
Declaration
public static GraphicsTestCase GetCaseFromScenePath(string scenePath, string referenceImagePath = null)
Parameters
Type | Name | Description |
---|---|---|
string | scenePath | |
string | referenceImagePath |
Returns
Type | Description |
---|---|
GraphicsTestCase |
Implements
NUnit.Framework.Interfaces.ISimpleTestBuilder
NUnit.Framework.Interfaces.IImplyFixture
NUnit.Framework.Interfaces.IApplyToTest
NUnit.Framework.Interfaces.ITestBuilder