OSConditionAttribute Class

Definition

This attribute is used to ignore a test class or a test method, with an optional message.

C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class OSConditionAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.ConditionBaseAttribute
Inheritance
OSConditionAttribute
Attributes

Remarks

This attribute isn't inherited. Applying it to a base class will not cause derived classes to be ignored.

Constructors

Properties

GroupName

Gets the group name for this attribute.

IgnoreMessage

Gets the ignore message (in case ShouldRun returns false).

ShouldRun

Gets a value indicating whether the test method or test class should be ignored.

Applies to

Proizvod Verzije
MSTest.TestFramework 3.8.0