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