public void CalculateTimeToRunInSeconds() { //arrange Scheduler.Scheduler scheduler = new Scheduler.Scheduler(); DateTime currentDateTime = new DateTime(2018, 06, 11, 21, 30, 00); DateTime expectedDateTime = new DateTime(2018, 06, 11, 21, 30, 30); int interval = 30; //act var actualDateTime = scheduler.CalculateTimeToRunInSeconds(interval, currentDateTime); //assert Assert.AreEqual(expectedDateTime, actualDateTime); }