Partager via


DefaultTestManager.Assume Method

The generated test code does not call this method. You can call this method from your implementation of the IGeneratedTestClass.InitializeTestManager method to check any initialization requirements that the test class might have.

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

Usage

'Usage

Syntax

'Declaration
public void Assume (
    bool condition,
    string description
)

Parameters

  • condition
    The condition to assume true.
  • description
    The message to include in any exception that is thrown when condition is false.

Remarks

The site parameter of the DefaultTestManager constructor associates a test site with the test manager. This method calls the Assume method of the associated test site.

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

DefaultTestManager Class
DefaultTestManager Members
Microsoft.SpecExplorer.Runtime.Testing Namespace
IBasicTestSite.Assume