Partager via


Condition.IsTrue Method (Boolean, String)

Enables exploration of the enclosing rule and indicates that a requirement is captured by the generated step if a condition evaluates to true.

Namespace: Microsoft.Modeling
Assembly: Microsoft.Xrt.Runtime (in Microsoft.Xrt.Runtime.dll)

Usage

'Usage

Syntax

'Declaration
public static void IsTrue (
    bool condition,
    string requirement
)

Parameters

  • condition
    true to enable exploration of the enclosing rule and indicate that requirement is captured by the generated step; otherwise, false.
  • requirement
    The requirement that is captured by the generated step.

Remarks

If condition is false, then Spec Explorer does not explore the rule and does not mark requirement as captured.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP SP2 or later, Microsoft Windows Server 2008, Microsoft Windows Server 2003

See Also

Reference

Condition Class
Condition Members
Microsoft.Modeling Namespace
Condition.IsFalse Method
Requirement