Interface ITestClassMetadata
Represents metadata about a test class.
public interface ITestClassMetadata
- Extension Methods
Properties
TestClassName
Gets the full name of the test class (i.e., FullName).
string TestClassName { get; }
Property Value
TestClassNamespace
Gets the namespace of the class where the test is defined. Will return null for
classes not residing in a namespace.
string? TestClassNamespace { get; }
Property Value
TestClassSimpleName
Gets the simple name of the test class (the class name without namespace).
string TestClassSimpleName { get; }
Property Value
Traits
Gets the trait values associated with this test class (and the test collection, and test
assembly). If there are none, or the framework does not support traits, this returns an
empty dictionary (not null).
IReadOnlyDictionary<string, IReadOnlyCollection<string>> Traits { get; }
Property Value
UniqueID
Gets the unique ID for this test class.
string UniqueID { get; }
Property Value
Remarks
The unique identifier for a test class should be able to discriminate among test classes in the same test assembly. This identifier should remain stable until such time as the developer changes some fundamental part of the identity (assembly, collection, or test class). Recompilation of the test assembly is reasonable as a stability changing event.