public void Second_test_for_date_only_specification_of_time() { Assert.Equal( new DateTime(2009, 2, 19, 1, 46, 40), Gigasecond.Add(new DateTime(1977, 6, 13) )); }
public void Date_only_specification_of_time() { Assert.Equal(new DateTime(2043, 1, 1, 1, 46, 40), Gigasecond.Add(new DateTime(2011, 4, 25))); }
public void Full_time_with_day_roll_over() { Assert.Equal(new DateTime(2046, 10, 3, 1, 46, 39), Gigasecond.Add(new DateTime(2015, 1, 24, 23, 59, 59))); }
public void Full_time_specified() { Assert.Equal(new DateTime(2046, 10, 2, 23, 46, 40), Gigasecond.Add(new DateTime(2015, 1, 24, 22, 0, 0))); }
public void Third_test_for_date_only_specification_of_time() { Assert.Equal(new DateTime(1991, 3, 27, 1, 46, 40), Gigasecond.Add(new DateTime(1959, 7, 19))); }
public void First_date() { var date = Gigasecond.Date(new DateTime(2011, 4, 25, 0, 0, 0, DateTimeKind.Utc)); Assert.That(date, Is.EqualTo(new DateTime(2043, 1, 1, 1, 46, 40, DateTimeKind.Utc))); }
//[Ignore("Remove to run test")] public void Yet_another_date() { var date = Gigasecond.Date(new DateTime(1959, 7, 19, 0, 0, 0, DateTimeKind.Utc)); Assert.That(date, Is.EqualTo(new DateTime(1991, 3, 27, 1, 46, 40, DateTimeKind.Utc))); }
//[Ignore("Remove to run test")] public void Another_date() { var date = Gigasecond.Date(new DateTime(1977, 6, 13, 0, 0, 0, DateTimeKind.Utc)); Assert.That(date, Is.EqualTo(new DateTime(2009, 2, 19, 1, 46, 40, DateTimeKind.Utc))); }
public void First_date() { var date = Gigasecond.Date(new DateTime(2011, 4, 25, 0, 0, 0, DateTimeKind.Utc)); Assert.Equal(new DateTime(2043, 1, 1, 1, 46, 40, DateTimeKind.Utc), date); }
public void First_date() { var gs = new Gigasecond(new DateTime(2011, 4, 25)); Assert.That(gs.Date(), Is.EqualTo(new DateTime(2043, 1, 1))); }
public void Yet_another_date() { var gs = new Gigasecond(new DateTime(1959, 7, 19)); Assert.That(gs.Date(), Is.EqualTo(new DateTime(1991, 3, 27))); }
public void Another_date() { var gs = new Gigasecond(new DateTime(1977, 6, 13)); Assert.That(gs.Date(), Is.EqualTo(new DateTime(2009, 2, 19))); }
public void InOneGigasecond_SpecifyOnlyTime_TimeIsCorrect() { Assert.AreEqual( new DateTime(2043, 1, 1, 1, 46, 40), Gigasecond.InOneGigasecond(new DateTime(2011, 4, 25))); }
public void InOneGigasecond_SpecifyFullTime_TimeIsCorrect() { Assert.AreEqual( new DateTime(2046, 10, 2, 23, 46, 40), Gigasecond.InOneGigasecond(new DateTime(2015, 1, 24, 22, 0, 0))); }