mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-16 23:13:07 +01:00
More asserts in integration test
This commit is contained in:
parent
45563553ee
commit
920265eb4e
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user