Class PreservedValuesAttribute
Like the ValuesAttribute it is used to provide literal arguments for an individual parameter of a test. It has the Preserve attribute added, allowing it to persist in players build at a high stripping level.
Implements
IParameterDataSource
Inherited Members
ValuesAttribute.data
ValuesAttribute.GetData(IParameterInfo)
Namespace: UnityEngine.TestTools
Assembly: UnityEngine.TestRunner.dll
Syntax
[Preserve]
public class PreservedValuesAttribute : ValuesAttribute, IParameterDataSource
Constructors
PreservedValuesAttribute(params object[])
Construct the values attribute with a set of arguments.
Declaration
public PreservedValuesAttribute(params object[] args)
Parameters
Type | Name | Description |
---|---|---|
object[] | args | The set of arguments for the test parameter. |
Implements
NUnit.Framework.Interfaces.IParameterDataSource