コード例 #1
0
 public void TestDateTime()
 {
     TestCore(
         DateTime.UtcNow,
         stream => MessagePackConvert.ToDateTime(Unpacking.UnpackInt64(stream)),
         CompareDateTime
         );
 }
コード例 #2
0
 public void TestDateTimeOffset()
 {
     TestCore(
         DateTimeOffset.UtcNow,
         stream => MessagePackConvert.ToDateTimeOffset(Unpacking.UnpackInt64(stream)),
         (x, y) => CompareDateTime(x.DateTime.ToUniversalTime(), y.DateTime.ToUniversalTime())
         );
 }
コード例 #3
0
 public void TestInt64()
 {
     TestCore(Int32.MaxValue + 1L, stream => Unpacking.UnpackInt64(stream), null);
 }