Skip to content

Commit

Permalink
change compairon to work on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlm committed Nov 25, 2024
1 parent da46975 commit 3e1d8b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tests/Consolonia.Core.Tests/StorageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ public async Task TestFolderSemantics()
Assert.IsTrue(File.Exists(file.Path.LocalPath));

var props = await testFolder.GetBasicPropertiesAsync();
Assert.AreEqual((DateTimeOffset)Directory.GetCreationTime(testPath), props.DateCreated);
Assert.AreEqual(((DateTimeOffset)Directory.GetLastWriteTime(testPath)).ToString(), props.DateModified.ToString());
Assert.AreEqual(Directory.GetCreationTime(testPath), props.DateCreated.Value.DateTime);

Check warning on line 134 in src/Tests/Consolonia.Core.Tests/StorageTests.cs

View workflow job for this annotation

GitHub Actions / build

"[PossibleInvalidOperationException] Possible 'System.InvalidOperationException'" on /home/runner/work/Consolonia/Consolonia/src/Tests/Consolonia.Core.Tests/StorageTests.cs(134,66)
Assert.AreEqual(Directory.GetLastWriteTime(testPath), props.DateModified.Value.DateTime);

Check warning on line 135 in src/Tests/Consolonia.Core.Tests/StorageTests.cs

View workflow job for this annotation

GitHub Actions / build

"[PossibleInvalidOperationException] Possible 'System.InvalidOperationException'" on /home/runner/work/Consolonia/Consolonia/src/Tests/Consolonia.Core.Tests/StorageTests.cs(135,67)

await file.DeleteAsync();
Assert.IsFalse(File.Exists(file.Path.LocalPath));
Expand Down

0 comments on commit 3e1d8b0

Please sign in to comment.