VsTestClassBase.Comment Method

Produces a comment to the test harness about test execution in the generated test cases.

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

Usage

'Usage

Syntax

'Declaration
public override void Comment (
    string description
)

Parameters

  • description
    The comment to produce.

Remarks

Each generated test case calls the Comment method of the test manager to produce a comment about test execution. The test manager then calls the Comment method of the generated test class. The test manager for the test is initialized in the InitializeTestManager method.

If the LogToFile property is true, this method writes the comment to the log file; otherwise, this method sends the comment to the console.

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

VsTestClassBase Class
VsTestClassBase Members
Microsoft.SpecExplorer.Runtime.Testing Namespace
GeneratedTestClassBase.InitializeTestManager Method
DefaultTestManager.Comment Method