Interface ITestFrameworkOptions
This interface should not be consumed directly; instead, you should consume ITestFrameworkDiscoveryOptions or ITestFrameworkExecutionOptions.
public interface ITestFrameworkOptions
- Extension Methods
Methods
GetValue<TValue>(string)
Gets an option value.
TValue? GetValue<TValue>(string name)
Parameters
namestringThe name of the value.
Returns
- TValue
The value.
Type Parameters
TValueThe type of the value.
SetValue<TValue>(string, TValue)
Sets an option value.
void SetValue<TValue>(string name, TValue value)
Parameters
namestringThe name of the value.
valueTValueThe value to be set.
Type Parameters
TValueThe type of the value.
ToJson()
Converts the test framework options into JSON. Used for serializing the options for sending across a process boundary.
string ToJson()
Returns
- string
The serialized framework options.