Class SnapshotLocationContext

Namespace
XBullet.EasyTesting.Snapshots
Assembly
XBullet.EasyTesting.Snapshots.Core.dll

Describes the calling test when resolving a snapshot directory.

public sealed class SnapshotLocationContext
Inheritance
SnapshotLocationContext
Inherited Members

Properties

SnapshotName

Gets the configured snapshot name or caller member name.

public string SnapshotName { get; }

Property Value

string

The name requested before filename sanitization.

SourceDirectory

Gets the full caller source directory.

public string SourceDirectory { get; }

Property Value

string

The normalized full directory containing SourceFile.

SourceFile

Gets the full caller source-file path embedded by the compiler.

public string SourceFile { get; }

Property Value

string

The absolute or compiler-supplied path used as the snapshot location anchor.

SourceFileName

Gets the caller source filename, including its extension.

public string SourceFileName { get; }

Property Value

string

The filename portion of SourceFile, including extension.

TestName

Gets the caller member name.

public string TestName { get; }

Property Value

string

The compiler-supplied caller member name, which may be empty if supplied manually.

Variant

Gets the optional snapshot variant.

public string? Variant { get; }

Property Value

string

The requested variant before filename sanitization, or null.