ExecutableConditionAttribute.GroupName Property

Definition

Gets the group name for this attribute. Each command -- combined with Mode -- forms its own group, so requiring several different commands is combined with a logical AND, while the same command with opposite modes does not silently cancel out (mirroring MemberConditionAttribute).

public override string GroupName { get; }
member this.GroupName : string
Public Overrides ReadOnly Property GroupName As String

Property Value

Remarks

The two evaluation modes are prefixed (presence vs run) and segments are separated with the null character, which can't appear in an executable name or argument. This keeps the presence check for an executable literally named "foo bar" distinct from running foo with argument bar. TimeoutSeconds is intentionally excluded so the same command with different timeouts still groups together (logical OR); it is instead part of Microsoft.VisualStudio.TestTools.UnitTesting.ExecutableConditionAttribute.CacheKey so a different timeout re-evaluates.

Applies to