Class SnapshotCatalog

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

Tracks snapshots observed during an explicit test run and identifies verified files that were not exercised. Keep one catalog for the test scope whose snapshots should be audited.

public sealed class SnapshotCatalog
Inheritance
SnapshotCatalog
Inherited Members

Properties

ObservedVerifiedSnapshots

Gets a stable copy of the verified snapshot paths observed by this catalog.

public IReadOnlyList<string> ObservedVerifiedSnapshots { get; }

Property Value

IReadOnlyList<string>

A newly allocated, case-insensitively sorted list of full paths. The list may be empty and can be read independently of later catalog updates.

Methods

FindObsoleteSnapshots(string)

Finds verified snapshot files below a directory that have not been observed by this catalog. Call this only after all snapshots in the tracked test scope have executed.

public IReadOnlyList<string> FindObsoleteSnapshots(string directory)

Parameters

directory string

Non-empty absolute or current-directory-relative root to search recursively. A missing directory is accepted.

Returns

IReadOnlyList<string>

Full paths of unobserved verified snapshots, sorted case-insensitively. The operation does not modify files or catalog state.