docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    object
    Attribute
    NUnitAttribute
    CombiningStrategyAttribute
    UnityTestAttribute
    UseGraphicsTestCasesAttribute
    Implements
    ISimpleTestBuilder
    IImplyFixture
    IApplyToTest
    ITestBuilder
    Inherited Members
    UnityTestAttribute.ApplyToTest(Test)
    CombiningStrategyAttribute.BuildFrom(IMethodInfo, Test)
    Attribute.Equals(object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.Match(object)
    Attribute.TypeId
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)