Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     Dio = new DtzIoHelper("compress", stream => new DateTimeZoneCompressionWriter(stream), stream => new DateTimeZoneCompressionReader(stream));
 }
Ejemplo n.º 3
0
 public void SetUp()
 {
     Dio = new DtzIoHelper("standard", stream => new DateTimeZoneWriter(stream), stream => new DateTimeZoneReader(stream));
 }
Ejemplo n.º 4
0
 public void TestReadWrite()
 {
     var dio = new DtzIoHelper("FixedDateTimeZone");
     dio.TestTimeZone(TestZone);
 }
Ejemplo n.º 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);
 }