Class GraphicsTestCase
Represents one automatically-generated graphics test case.
Inheritance
GraphicsTestCase
Assembly: UnityEngine.TestTools.Graphics.dll
public class GraphicsTestCase
Constructors
Declaration
public GraphicsTestCase(string scenePath, RenderPipelineAsset srpAsset = null)
Parameters
GraphicsTestCase(string, CodeBasedGraphicsTestAttribute, Texture2D, RenderPipelineAsset, string)
Declaration
public GraphicsTestCase(string name, CodeBasedGraphicsTestAttribute codeBasedGraphicsTestAttrib, Texture2D referenceImage, RenderPipelineAsset srpAsset = null, string referenceImagePathLog = null)
Parameters
GraphicsTestCase(string, Texture2D, RenderPipelineAsset, string)
Declaration
public GraphicsTestCase(string scenePath, Texture2D referenceImage, RenderPipelineAsset srpAsset = null, string referenceImagePathLog = null)
Parameters
Properties
Declaration
public CodeBasedGraphicsTestAttribute CodeBasedGraphicsTestAttribute { get; }
Property Value
The name of the test to be displayed in the TestRunner window and the Graphics Test Results window.
Declaration
public string Name { get; }
Property Value
The reference image that represents the expected output for this test case.
Declaration
public Texture2D ReferenceImage { get; set; }
Property Value
The log message that communicates the path to the reference image of this test case.
Declaration
public string ReferenceImagePathLog { get; set; }
Property Value
The Scriptable Render Pipeline Asset used for this test case.
Declaration
public RenderPipelineAsset SRPAsset { get; }
Property Value
The path to the scene to be used for this test case.
Declaration
public string ScenePath { get; }
Property Value
Methods
Declaration
public override string ToString()
Returns
Overrides