Class NullSourceInformationProvider
A null implementation of ISourceInformationProvider which always returns empty source information. Get the singleton via Instance.
public sealed class NullSourceInformationProvider : ISourceInformationProvider, IAsyncDisposable
- Inheritance
-
NullSourceInformationProvider
- Implements
- Inherited Members
Properties
Instance
Gets the singleton instance of the NullSourceInformationProvider.
public static NullSourceInformationProvider Instance { get; }
Property Value
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
GetSourceInformation(string?, string?)
Returns the source information for a test case.
public SourceInformation GetSourceInformation(string? testClassName, string? testMethodName)
Parameters
testClassNamestringThe test class name, if known
testMethodNamestringThe test method name, if known
Returns
- SourceInformation
The source information, with null string and int values when the information is not available. Note: return value should never be
null, only the interior data values inside.