Partager via


DefaultTestManager.CreateVariable Method

The generated test initialization code calls this method to initialize an object that references a variable in the system under test. 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 virtual IVariable<T> CreateVariable<T> (
    string name
)

GenericParameters

  • T
    The type of the variable to create in the system under test.

Parameters

  • name
    The name of the variable to create in the system under test.

Return Value

A reference to the new variable in the system under test.

Remarks

The generated test initialization code calls this method to create a variable that the test manager can bind to a corresponding variable in the system under test.

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