From 3e1d8b049de6e90a29fdae11872c2289c7903762 Mon Sep 17 00:00:00 2001 From: Tom Laird-McConenll Date: Sun, 24 Nov 2024 22:35:53 -0600 Subject: [PATCH] change compairon to work on unix --- src/Tests/Consolonia.Core.Tests/StorageTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));