Exemple #1
0
        public void CalculateTimeToRunInDays()
        {
            //arrange
            Scheduler.Scheduler scheduler        = new Scheduler.Scheduler();
            DateTime            currentDateTime  = new DateTime(2018, 06, 11, 21, 30, 00);
            DateTime            expectedDateTime = new DateTime(2018, 06, 12, 21, 30, 00);
            int interval = 1;

            //act
            var actualDateTime = scheduler.CalculateTimeToRunInDays(interval, currentDateTime);

            //assert
            Assert.AreEqual(expectedDateTime, actualDateTime);
        }