Method TryGetClassMetadata
- Namespace
- Xunit.Runner.Common
- Assembly
- xunit.v3.runner.common.dll
TryGetClassMetadata(string, bool)
Attempts to retrieve ITestClassMetadata from the cache (and optionally remove it).
public ITestClassMetadata? TryGetClassMetadata(string testClassUniqueID, bool remove = false)
Parameters
testClassUniqueIDstringThe unique ID of the test class to retrieve.
removeboolSet to
trueto remove the metadata after retrieval.
Returns
The cached metadata, if present; or
nullif there isn't any.
TryGetClassMetadata(ITestClassMessage)
Attempts to retrieve ITestClassMetadata from the cache.
public ITestClassMetadata? TryGetClassMetadata(ITestClassMessage message)
Parameters
messageThe message that indicates which metadata to retrieve.
Returns
The cached metadata, if present; or
nullif there isn't any.