Class GraphicsTestParamSourceAttribute
Supplies additional argument sets from an external source type for graphics test parameterization.
The source type must implement IEnumerable<T> of object[].
Inherited Members
Namespace: UnityEngine.TestTools.Graphics
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class GraphicsTestParamSourceAttribute : Attribute
Remarks
The decorated method must also carry GraphicsTestAttribute (or a derived attribute).
Each object[] yielded by the source produces one parameterized variant per graphics test case.
Examples
[GraphicsTest]
[GraphicsTestParamSource(typeof(MyParamSource))]
public void MyTest(GraphicsTestCase tc, int quality) { }
Constructors
GraphicsTestParamSourceAttribute(Type)
Creates a new instance of the GraphicsTestParamSourceAttribute class.
Declaration
public GraphicsTestParamSourceAttribute(Type source)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | source | A type that implements IEnumerable<T> of |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when |