Compartir a través de


GeneratedTestClassBase.LogToFile Property

Gets or sets a value that indicates whether to write messages to a log file.

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

Usage

'Usage

Syntax

'Declaration
public bool LogToFile { get; set; }

Property Value

true to write checkpoint and comment messages to a log file; otherwise, false. The default is false.

Remarks

Notes to Inheritors: To support logging features in your test class base, set the value of this property in the constructor of your custom base test class and then implement the BeginTest, EndTest, Assert, Assume, Checkpoint, and Comment methods to support logging.

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

GeneratedTestClassBase Class
GeneratedTestClassBase Members
Microsoft.SpecExplorer.Runtime.Testing Namespace