Skip to content

Commit 57c2846

Browse files
committed
Upgraded some assertions
1 parent 8175554 commit 57c2846

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/System.IO.Abstractions.Extensions.Tests/FileSystemExtensionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ public void CreateDisposableFile_Temp_Path_Test()
120120
{
121121
path = file.FullName;
122122

123-
Assert.IsTrue(file.Exists, "File should exist");
123+
Assert.That(file.Exists, Is.True, "File should exist");
124124
Assert.IsTrue(
125125
path.StartsWith(fs.Path.GetTempPath(), StringComparison.Ordinal),
126126
"File should be in temp path");
127127
}
128128

129129
// Assert file is deleted
130-
Assert.IsFalse(fs.File.Exists(path), "File should not exist");
130+
Assert.That(fs.File.Exists(path), Is.False, "File should not exist");
131131
}
132132

133133
[Test]

0 commit comments

Comments
 (0)