Compartir a través de


ITestManager.Assert Method

This method supports assertion handling in the generated test cases and is not intended to be used directly from your code.

Namespace: Microsoft.SpecExplorer.Runtime.Testing
Assembly: Microsoft.SpecExplorer.Runtime (in Microsoft.SpecExplorer.Runtime.dll)

Usage

'Usage

Syntax

'Declaration
void Assert (
    bool condition,
    string description
)

Parameters

  • condition
    The condition to check.
  • description
    The message to include in the exception that is thrown when condition is false.

Remarks

A generated test case calls this method when Spec Explorer produces a step based on a rule that contains a call to the Condition.AssertIsTrue method.

This method calls the Assert method of the test site that has been associated with the test manager.

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

ITestManager Interface
ITestManager Members
Microsoft.SpecExplorer.Runtime.Testing Namespace
Condition.AssertIsTrue Method
IBasicTestSite.Assert Method