Ejemplo n.º 1
0
        public void CalculateTimeToRunInMonths()
        {
            //arrange
            Scheduler.Scheduler scheduler        = new Scheduler.Scheduler();
            DateTime            currentDateTime  = new DateTime(2018, 06, 11, 21, 30, 00);
            DateTime            expectedDateTime = new DateTime(2018, 08, 11, 21, 30, 00);
            int interval = 2;

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

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