Udostępnij za pośrednictwem


TestContext.FullyQualifiedTestClassName Property

Definition

Gets the Fully-qualified name of the class containing the test method currently being executed

public virtual string FullyQualifiedTestClassName { get; }
public virtual string? FullyQualifiedTestClassName { get; }
member this.FullyQualifiedTestClassName : string
Public Overridable ReadOnly Property FullyQualifiedTestClassName As String

Property Value

Remarks

This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. Those attributes have access to the test context, and provide messages that are included in the test results. Users can benefit from messages that include the fully-qualified class name in addition to the name of the test method currently being executed.

Applies to