More asserts in integration test

This commit is contained in:
Johan Klinge 2019-01-08 15:48:20 +01:00
parent 45563553ee
commit 920265eb4e

View File

@ -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);
}
}
}