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

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

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