Esempio n. 1
0
        public void RecordServiceTest()
        {
            ServiceMock2.RecordService(41, new DateTime(2017, 07, 14, 1, 30, 0));

            Assert.AreEqual(2, ServiceMock2.GetServiceCount());
            Assert.AreEqual(41, ServiceMock2.GetLastServiceOdometerKm());
            Assert.AreEqual((int)41 / 10000, ServiceMock2.GetTotalScheduledServices());
        }
Esempio n. 2
0
 public void GetLastServiceOdometerKmTest()
 {
     Assert.AreEqual(0, ServiceMock1.GetLastServiceOdometerKm());
     Assert.AreEqual(89, ServiceMock2.GetLastServiceOdometerKm());
 }