Table of Contents

Class MessageMetadataCache

Namespace
Xunit.Runner.Common
Assembly
xunit.v3.runner.common.dll

Caches message metadata for xUnit.net v3 messages. The metadata which is cached depends on the message that is passed (for example, looking up with an ITestAssemblyMessage will return an IAssemblyMetadata). Storage methods require the "Starting" versions of messages (as these are the ones which contain the metadata), and removal methods require the "Finished" versions of messages.

public class MessageMetadataCache
Inheritance
MessageMetadataCache
Inherited Members

Methods

Set(ITestAssemblyStarting)

Sets IAssemblyMetadata into the cache.

Set(ITestCaseStarting)

Sets ITestCaseMetadata into the cache.

Set(ITestClassStarting)

Sets ITestClassMetadata into the cache.

Set(ITestCollectionStarting)

Sets ITestCollectionMetadata into the cache.

Set(ITestMethodStarting)

Sets ITestMethodMetadata into the cache.

Set(ITestStarting)

Sets ITestMetadata into the cache.

TryGetAssemblyMetadata(string, bool)

Attempts to retrieve IAssemblyMetadata from the cache (and optionally remove it).

TryGetAssemblyMetadata(ITestAssemblyMessage)

Attempts to retrieve IAssemblyMetadata from the cache.

TryGetClassMetadata(string, bool)

Attempts to retrieve ITestClassMetadata from the cache (and optionally remove it).

TryGetClassMetadata(ITestClassMessage)

Attempts to retrieve ITestClassMetadata from the cache.

TryGetCollectionMetadata(string, bool)

Attempts to retrieve ITestCollectionMetadata from the cache (and optionally remove it).

TryGetCollectionMetadata(ITestCollectionMessage)

Attempts to retrieve ITestCollectionMetadata from the cache.

TryGetMethodMetadata(string, bool)

Attempts to retrieve ITestMethodMetadata from the cache (and optionally remove it).

TryGetMethodMetadata(ITestMethodMessage)

Attempts to retrieve ITestMethodMetadata from the cache.

TryGetTestCaseMetadata(string, bool)

Attempts to retrieve ITestCaseMetadata from the cache (and optionally remove it).

TryGetTestCaseMetadata(ITestCaseMessage)

Attempts to retrieve ITestCaseMetadata from the cache.

TryGetTestMetadata(string, bool)

Attempts to retrieve ITestMetadata from the cache (and optionally remove it).

TryGetTestMetadata(ITestMessage)

Attempts to retrieve ITestMetadata from the cache.

TryRemove(ITestAssemblyFinished)

Attempts to retrieve IAssemblyMetadata from the cache, and if present, removes the metadata from the cache.

TryRemove(ITestCaseFinished)

Attempts to retrieve ITestCaseMetadata from the cache, and if present, removes the metadata from the cache.

TryRemove(ITestClassFinished)

Attempts to retrieve ITestClassMetadata from the cache, and if present, removes the metadata from the cache.

TryRemove(ITestCollectionFinished)

Attempts to retrieve ITestCollectionMetadata from the cache, and if present, removes the metadata from the cache.

TryRemove(ITestFinished)

Attempts to retrieve ITestMetadata from the cache, and if present, removes the metadata from the cache.

TryRemove(ITestMethodFinished)

Attempts to retrieve ITestMethodMetadata from the cache, and if present, removes the metadata from the cache.