Skip to content

Commit

Permalink
fix: call correct methods in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksadowski committed Jan 20, 2023
1 parent 28881a7 commit 81be6bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void MockFile_ReadAllLines_NotExistingFile_ThrowsCorrectFileNotFoundExcep
var mockFileSystem = new MockFileSystem();

var act = new TestDelegate(() =>
mockFileSystem.File.ReadAllText(absentFileNameFullPath)
mockFileSystem.File.ReadAllLines(absentFileNameFullPath)
);

var exception = Assert.Catch<FileNotFoundException>(act);
Expand Down Expand Up @@ -149,7 +149,7 @@ public void MockFile_ReadAllLinesAsync_NotExistingFile_ThrowsCorrectFileNotFound
var mockFileSystem = new MockFileSystem();

var act = new AsyncTestDelegate(async () =>
await mockFileSystem.File.ReadAllTextAsync(absentFileNameFullPath)
await mockFileSystem.File.ReadAllLinesAsync(absentFileNameFullPath)
);

var exception = Assert.CatchAsync<FileNotFoundException>(act);
Expand Down

0 comments on commit 81be6bc

Please sign in to comment.