public void should_correctly_calculate_next_year_start() { var tense = new Next(); var place = new Start(); var unit = new Year(_dateTime); var dt = unit.GetDateTime(tense, place); Assert.That(dt, Is.EqualTo(_nextYearStart)); }
public void should_correctly_calculate_next_hour_end() { var tense = new Next(); var place = new End(); var unit = new Hour(_dateTime); var dt = unit.GetDateTime(tense, place); Assert.That(dt, Is.EqualTo(_nextHourEnd)); }
public void should_correctly_calculate_next_day_start() { var tense = new Next(); var place = new Start(); var unit = new Day(); var dt = unit.GetDateTime(tense, place); var dateTime = DateTime.UtcNow.Date.AddDays(1); Assert.That(dt, Is.EqualTo(dateTime)); }