Interface IReferenceImageNamingStrategy
Pluggable strategy for building a reference image file descriptor for parameterized graphics tests.
Namespace: UnityEngine.TestTools.Graphics
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
public interface IReferenceImageNamingStrategy
Remarks
Implementations must be stateless, have a public parameterless constructor, and must not be expensive to construct. When assigned via ReferenceImageNamingStrategyType, this strategy takes precedence over ReferenceImageRootSource.
Methods
CreateDescriptor(GraphicsTestCase, string, ImageExtension, TextureFormat)
Creates a descriptor for the given parameterized test case.
Declaration
IReferenceImageFileDescriptor CreateDescriptor(GraphicsTestCase rawCase, string parameterizedTestName, ImageExtension extension, TextureFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsTestCase | rawCase | The graphics test case before parameter expansion (e.g. includes scene path for scene tests). |
| string | parameterizedTestName | The NUnit display name fragment used as the default reference root. |
| ImageExtension | extension | Reference image extension from the graphics test attribute. |
| TextureFormat | format | Texture format from the graphics test attribute. |
Returns
| Type | Description |
|---|---|
| IReferenceImageFileDescriptor | A descriptor, or |