From 920265eb4e5740663f9e26c41058d9bbc6fa83fa Mon Sep 17 00:00:00 2001 From: Johan Klinge Date: Tue, 8 Jan 2019 15:48:20 +0100 Subject: [PATCH] More asserts in integration test --- .../Commands/UserGetWeeklyChartTests.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/IF.Lastfm.Core.Tests.Integration/Commands/UserGetWeeklyChartTests.cs b/src/IF.Lastfm.Core.Tests.Integration/Commands/UserGetWeeklyChartTests.cs index 9d7e8c0..57d7913 100644 --- a/src/IF.Lastfm.Core.Tests.Integration/Commands/UserGetWeeklyChartTests.cs +++ b/src/IF.Lastfm.Core.Tests.Integration/Commands/UserGetWeeklyChartTests.cs @@ -17,7 +17,12 @@ public async Task GetChartList_Success() Assert.IsTrue(response.Success); Assert.IsNotEmpty(chartlist); + Assert.AreEqual(typeof(double), chartlist.First().To.GetType()); + Assert.AreEqual(typeof(double), chartlist.First().From.GetType()); + Assert.AreEqual(typeof(DateTime), chartlist.First().ToDate.GetType()); + Assert.AreEqual(typeof(DateTime), chartlist.First().FromDate.GetType()); Assert.That(chartlist.Last().ToDate, Is.EqualTo(DateTime.Now).Within(8).Days); + Assert.That(chartlist.Last().FromDate, Is.EqualTo(DateTime.Now).Within(15).Days); } } }