Class FileSnapshotOptions
- Namespace
- PDiffy
- Assembly
- PDiffy.dll
Where VerifyFile(string, Action<FileSnapshotOptions>?, string, string) keeps a file's snapshot. The snapshot itself uses the suite's default options for the file's kind.
public sealed class FileSnapshotOptions
- Inheritance
-
FileSnapshotOptions
- Inherited Members
Methods
Directory(string)
The folder for this snapshot, instead of Directory.
public FileSnapshotOptions Directory(string directory)
Parameters
directorystring
Returns
Name(string)
The snapshot's file name without extension, instead of one from the test file and method, such as "TrailMapTests.TrailMap_ShouldMatch".
public FileSnapshotOptions Name(string name)
Parameters
namestring
Returns
Variant(string)
Added to the name, default or not, as {name}.{variant}, so each row of a theory gets its own snapshot and
keeps the test's name: o => o.Variant(trail).
public FileSnapshotOptions Variant(string variant)
Parameters
variantstring