public void Extensions_MakeLocalDateRange_2() { var moon = new moonStation(); var x = moon.MakeLocalDateRange(new DateTime(1980, 1, 1, 13, 0, 0, DateTimeKind.Utc), new DateTime(1980, 1, 1, 14, 0, 0, DateTimeKind.Utc)); Aver.IsTrue(x.Kind == DateTimeKind.Local); Aver.AreEqual(8, x.Start.Value.Hour); //moon is 5 hrs behind UTC Aver.AreEqual(9, x.End.Value.Hour); }
public void Extensions_MakeLocalDateRange_1() { var moon = new moonStation(); var x = moon.MakeLocalDateRange(new DateTime(1980, 1, 1, 13, 0, 0, DateTimeKind.Local), new DateTime(1980, 1, 1, 14, 0, 0, DateTimeKind.Local)); Aver.IsTrue(x.Kind == DateTimeKind.Local); Aver.AreEqual(13, x.Start.Value.Hour); Aver.AreEqual(14, x.End.Value.Hour); }