Piotr Czajkowski 6 hónapja
szülő
commit
36bcd8ca60
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      ExcelORM/ExcelORMTests/WriterTests.cs

+ 3 - 2
ExcelORM/ExcelORMTests/WriterTests.cs

@@ -73,7 +73,7 @@ public class WriterTests
         var expected = new TestTypes
         {
             Date = DateTime.Now,
-            TimeSpan = TimeSpan.MaxValue,
+            TimeSpan = TimeSpan.FromSeconds(360),
             Double = 2.33,
             Int = 1024,
             Text = "Test"
@@ -90,7 +90,8 @@ public class WriterTests
         Assert.Single(result);
         var first = result.First();
         Assert.Equal(expected.Date.ToString(), first.Date.ToString());
-        Assert.Equal(expected.TimeSpan, first.TimeSpan);
+        Assert.NotNull(first.TimeSpan);
+        Assert.Equal(expected.TimeSpan.Value.Minutes, first.TimeSpan.Value.Minutes);
         Assert.Equal(expected.Double, first.Double);
         Assert.Equal(expected.Int, first.Int);
         Assert.Equal(expected.Text, first.Text);