TestManagerHelpers.AssertBind Method (ITestManager, IVariable, IVariable, String)

Asserts that two variables are equal or binds one to the other if only one variable is bound. This method supports 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
public static void AssertBind<T> (
    ITestManager manager,
    IVariable<T> v1,
    IVariable<T> v2,
    string context
)

GenericParameters

  • T
    The type of the variables.

Parameters

  • manager
    The test manager.
  • v1
    The first variable.
  • v2
    The second variable.
  • context
    A description of the context under which the comparison or binding happens.

Remarks

If neither variable is bound, this method does nothing.

The site parameter of the DefaultTestManager constructor associates a test site with the test manager. This method calls the Assert 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

TestManagerHelpers Class
TestManagerHelpers Members
Microsoft.SpecExplorer.Runtime.Testing Namespace
DefaultTestManager Class
IBasicTestSite.Assert Method