コード例 #1
0
        public void Test()
        {
            var dio = new DtzIoHelper("ZoneYearOffset");
            var expected = new ZoneYearOffset(TransitionMode.Utc, 10, 31, (int)IsoDayOfWeek.Wednesday, true, Offset.Zero);
            dio.TestZoneYearOffset(expected);

            dio = new DtzIoHelper("ZoneYearOffset");
            expected = new ZoneYearOffset(TransitionMode.Utc, 10, -31, (int)IsoDayOfWeek.Wednesday, true, Offset.Zero);
            dio.TestZoneYearOffset(expected);
        }
コード例 #2
0
 public void SetUp()
 {
     Dio = new DtzIoHelper("compress", stream => new DateTimeZoneCompressionWriter(stream), stream => new DateTimeZoneCompressionReader(stream));
 }
コード例 #3
0
 public void SetUp()
 {
     Dio = new DtzIoHelper("standard", stream => new DateTimeZoneWriter(stream), stream => new DateTimeZoneReader(stream));
 }
コード例 #4
0
 public void TestReadWrite()
 {
     var dio = new DtzIoHelper("FixedDateTimeZone");
     dio.TestTimeZone(TestZone);
 }
コード例 #5
0
 public void Test()
 {
     var dio = new DtzIoHelper("ZoneRecurrence");
     var yearOffset = new ZoneYearOffset(TransitionMode.Utc, 10, 31, (int)IsoDayOfWeek.Wednesday, true, Offset.Zero);
     var expected = new ZoneRecurrence("bob", Offset.Zero, yearOffset, 1971, 2009);
     dio.TestZoneRecurrence(expected);
 }