OSConditionAttribute Constructors

Definition

Overloads

OSConditionAttribute(OperatingSystems)

Source:
OSConditionAttribute.cs

Initializes a new instance of the OSConditionAttribute class.

C#
public OSConditionAttribute(Microsoft.VisualStudio.TestTools.UnitTesting.OperatingSystems operatingSystems);

Parameters

operatingSystems
OperatingSystems

The operating systems that this test supports.

Applies to

MSTest.TestFramework 3.8.0
Proizvod Verzije
MSTest.TestFramework 3.8.0

OSConditionAttribute(ConditionMode, OperatingSystems)

Source:
OSConditionAttribute.cs

Initializes a new instance of the OSConditionAttribute class.

C#
public OSConditionAttribute(Microsoft.VisualStudio.TestTools.UnitTesting.ConditionMode mode, Microsoft.VisualStudio.TestTools.UnitTesting.OperatingSystems operatingSystems);

Parameters

mode
ConditionMode

Decides whether the OSes will be included or excluded.

operatingSystems
OperatingSystems

The operating systems that this test includes/excludes.

Applies to

MSTest.TestFramework 3.8.0
Proizvod Verzije
MSTest.TestFramework 3.8.0