Table of Contents

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

testClassUniqueID string

The unique ID of the test class to retrieve.

remove bool

Set to true to remove the metadata after retrieval.

Returns

The cached metadata, if present; or null if there isn't any.

TryGetClassMetadata(ITestClassMessage)

Attempts to retrieve ITestClassMetadata from the cache.

public ITestClassMetadata? TryGetClassMetadata(ITestClassMessage message)

Parameters

message

The message that indicates which metadata to retrieve.

Returns

The cached metadata, if present; or null if there isn't any.