Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 2.67 KB

File metadata and controls

61 lines (43 loc) · 2.67 KB

Verify.TestableIO.System.IO.Abstractions

Discussions Build status NuGet Status

Extends Verify to allow verification of TestableIO.System.IO.Abstractions bits.

See Milestones for release notes.

Sponsors

Entity Framework Extensions

Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.

Entity Framework Extensions

NuGet

Usage

[ModuleInitializer]
public static void Initialize() =>
    VerifyTestableIOSystemIOAbstractions.Initialize();

snippet source | anchor

[Test]
public async Task Usage()
{
    IFileSystem fileSystem = new FileSystem();
    var fileInfo = fileSystem.FileInfo.New(@"C:\temp\temp.txt");
    await Verify(fileInfo);
}

snippet source | anchor

Results in:

C:\temp\temp.txt

snippet source | anchor