diff --git a/src/Tests/Consolonia.Core.Tests/StorageTests.cs b/src/Tests/Consolonia.Core.Tests/StorageTests.cs index 37e3f85..da925a0 100644 --- a/src/Tests/Consolonia.Core.Tests/StorageTests.cs +++ b/src/Tests/Consolonia.Core.Tests/StorageTests.cs @@ -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); + Assert.AreEqual(Directory.GetLastWriteTime(testPath), props.DateModified.Value.DateTime); await file.DeleteAsync(); Assert.IsFalse(File.Exists(file.Path.LocalPath));