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