public void hydrate_with_date_and_time() { var givenLocalTime = new LocalTime("26022012:0800"); var expectedLocalTime = LocalTime.AtDayAndTime(new Date("26022012"), "0800".ToTime()); givenLocalTime.Time.ShouldBe(expectedLocalTime.Time); givenLocalTime.Date.ShouldBe(expectedLocalTime.Date); }
public void hydrate_with_date_and_time() { var expectedDay = new Date("26022012"); new LocalTime("26022012:0800").ShouldEqual(LocalTime.AtDayAndTime(expectedDay, "0800".ToTime())); }