Skip to content

Commit

Permalink
fix: Remove single quotes from test (#329)
Browse files Browse the repository at this point in the history
The `GetFiles_MissingDirectory_ShouldThrowDirectoryNotFoundException`
test failed because exceptions are thrown in German on my system and
with double quotes, therefore I deleted the quotes from the assertion.

Co-authored-by: Stefan Lampert <[email protected]>
Co-authored-by: Valentin Breuß <[email protected]>
  • Loading branch information
3 people authored Jul 17, 2023
1 parent e78d655 commit 9acc65a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void
Record.Exception(()
=> FileSystem.Directory.GetFiles(path).ToList());

exception.Should().BeException<DirectoryNotFoundException>($"'{expectedPath}'.",
exception.Should().BeException<DirectoryNotFoundException>(expectedPath,
hResult: -2147024893);
FileSystem.Directory.Exists(path).Should().BeFalse();
}
Expand Down

0 comments on commit 9acc65a

Please sign in to comment.