Compartir a través de


Condition.Fail Method

Marks the target state of the enclosing rule as an error state.

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

Usage

'Usage

Syntax

'Declaration
public static void Fail ()

Remarks

Spec Explorer cannot construct test cases from a behavior that contains error states. This method is equivalent to the AssertIsTrue method where the condition parameter is false.

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.AssertIsTrue Method