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
    UnityTestAttribute
    UseGraphicsTestCasesAttribute
    Implements
    ISimpleTestBuilder
    IImplyFixture
    ITestBuilder
    IApplyToTest
    ITestBuilder
    Inherited Members
    UnityTestAttribute.ApplyToTest(Test)
    Namespace: UnityEngine.TestTools.Graphics
    Assembly: solution.dll
    Syntax
    public class UseGraphicsTestCasesAttribute : UnityTestAttribute, ISimpleTestBuilder, IImplyFixture, ITestBuilder, 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.ITestBuilder
    NUnit.Framework.Interfaces.IApplyToTest
    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)