Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.16 KB

verify-file.md

File metadata and controls

37 lines (30 loc) · 1.16 KB

VerifyFile

Verifies the contents of a file.

[Fact]
public Task VerifyFilePath() =>
    VerifyFile("sample.txt");

snippet source | anchor

Optional Info

An optional info parameter can be supplied to add more context to the test. The instance passed will be json serialized.

[Fact]
public Task VerifyFileWithInfo() =>
    VerifyFile(
        "sample.txt",
        info: "the info");

snippet source | anchor