Esempio n. 1
0
 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)
                        ));
 }
Esempio n. 2
0
 public void Date_only_specification_of_time()
 {
     Assert.Equal(new DateTime(2043, 1, 1, 1, 46, 40), Gigasecond.Add(new DateTime(2011, 4, 25)));
 }
Esempio n. 3
0
 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)));
 }
Esempio n. 4
0
 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)));
 }
Esempio n. 5
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)));
 }
Esempio n. 6
0
    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)));
    }
Esempio n. 7
0
    //[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)));
    }
Esempio n. 8
0
    //[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);
    }
Esempio n. 10
0
    public void First_date()
    {
        var gs = new Gigasecond(new DateTime(2011, 4, 25));

        Assert.That(gs.Date(), Is.EqualTo(new DateTime(2043, 1, 1)));
    }
Esempio n. 11
0
    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)));
    }
Esempio n. 12
0
    public void Another_date()
    {
        var gs = new Gigasecond(new DateTime(1977, 6, 13));

        Assert.That(gs.Date(), Is.EqualTo(new DateTime(2009, 2, 19)));
    }
Esempio n. 13
0
 public void InOneGigasecond_SpecifyOnlyTime_TimeIsCorrect()
 {
     Assert.AreEqual(
         new DateTime(2043, 1, 1, 1, 46, 40),
         Gigasecond.InOneGigasecond(new DateTime(2011, 4, 25)));
 }
Esempio n. 14
0
 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)));
 }