We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef57f2e commit 44a9446Copy full SHA for 44a9446
test/MsgPack.UnitTest/Serialization/RegressionTests.cs
@@ -531,5 +531,15 @@ public async Task TestIssue270Async_AsRaw()
531
}
532
533
#endif // FEATURE_TAP
534
+
535
+ [Test]
536
+ public void TestIssue269()
537
+ {
538
+ var input = new MessagePackObject( Timestamp.UtcNow.Encode() );
539
+ var target = MessagePackSerializer.UnpackMessagePackObject( MessagePackSerializer.Get<MessagePackObject>().PackSingleObject( input ) );
540
+ Assert.That( target.UnderlyingType, Is.EqualTo( typeof( MessagePackExtendedTypeObject ) ) );
541
+ Assert.That( target.IsTypeOf<byte[]>(), Is.False );
542
+ Assert.That( target.IsTypeOf<MessagePackExtendedTypeObject>(), Is.True );
543
+ }
544
545
0 commit comments