Method TryRemove
- Namespace
- Xunit.Runner.Common
- Assembly
- xunit.v3.runner.common.dll
TryRemove(ITestAssemblyFinished)
Attempts to retrieve IAssemblyMetadata from the cache, and if present, removes the metadata from the cache.
public IAssemblyMetadata? TryRemove(ITestAssemblyFinished message)
Parameters
messageThe message that indicates which metadata to retrieve.
Returns
The cached metadata, if present; or
nullif there isn't any.
TryRemove(ITestCaseFinished)
Attempts to retrieve ITestCaseMetadata from the cache, and if present, removes the metadata from the cache.
public ITestCaseMetadata? TryRemove(ITestCaseFinished message)
Parameters
messageThe message that indicates which metadata to retrieve.
Returns
The cached metadata, if present; or
nullif there isn't any.
TryRemove(ITestClassFinished)
Attempts to retrieve ITestClassMetadata from the cache, and if present, removes the metadata from the cache.
public ITestClassMetadata? TryRemove(ITestClassFinished message)
Parameters
messageThe message that indicates which metadata to retrieve.
Returns
The cached metadata, if present; or
nullif there isn't any.
TryRemove(ITestCollectionFinished)
Attempts to retrieve ITestCollectionMetadata from the cache, and if present, removes the metadata from the cache.
public ITestCollectionMetadata? TryRemove(ITestCollectionFinished message)
Parameters
messageThe message that indicates which metadata to retrieve.
Returns
The cached metadata, if present; or
nullif there isn't any.
TryRemove(ITestFinished)
Attempts to retrieve ITestMetadata from the cache, and if present, removes the metadata from the cache.
public ITestMetadata? TryRemove(ITestFinished message)
Parameters
messageThe message that indicates which metadata to retrieve.
Returns
The cached metadata, if present; or
nullif there isn't any.
TryRemove(ITestMethodFinished)
Attempts to retrieve ITestMethodMetadata from the cache, and if present, removes the metadata from the cache.
public ITestMethodMetadata? TryRemove(ITestMethodFinished message)
Parameters
messageThe message that indicates which metadata to retrieve.
Returns
The cached metadata, if present; or
nullif there isn't any.