Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix warnings
  • Loading branch information
vbreuss committed Mar 1, 2025
commit abb242f98971a23acf86ef2542c3c0de169ded88
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@ public async Task MockDirectory_SetCreationTime_ShouldNotThrowWithoutTrailingBac
var path = XFS.Path(@"C:\NoTrailingBackslash");
var fs = new MockFileSystem();
fs.Directory.CreateDirectory(path);
fs.Directory.SetCreationTime(path, DateTime.Now);
await That(()=> fs.Directory.SetCreationTime(path, DateTime.Now)).DoesNotThrow();
fs.Directory.Delete(path);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public async Task MockFile_Delete_No_File_Does_Nothing()

string filePath = XFS.Path(@"c:\something\not_exist.txt");

fileSystem.File.Delete(filePath);
await That(() => fileSystem.File.Delete(filePath)).DoesNotThrow();
}

[Test]
Expand Down Expand Up @@ -550,7 +550,7 @@ public async Task MockFile_AppendText_CreatesNewFileForAppendToNonExistingFile()

#if !NET9_0_OR_GREATER
[Test]
public async Task Serializable_works()
public void Serializable_works()
{
//Arrange
MockFileData data = new MockFileData("Text Contents");
Expand Down
Loading