Skip to content

Commit 99b1888

Browse files
author
Lewis Mohr
committed
add embedded extra field to versioning test
1 parent 99382a7 commit 99b1888

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/MsgPack.UnitTest/Serialization/VersioningTest.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ private static void TestExtraFieldCore<T>( SerializationMethod method, EmitterFl
6464
else
6565
{
6666
var packer = Packer.Create( stream, false );
67-
packer.PackMapHeader( 4 );
67+
packer.PackMapHeader( 5 );
6868
packer.Pack( "Field1" );
69-
packer.Pack( 1 );
69+
packer.Pack( 1 );
70+
packer.Pack( "Extra" );
71+
packer.PackNull();
7072
packer.Pack( "Field2" );
7173
packer.Pack( -1 );
7274
packer.Pack( "Field3" );

0 commit comments

Comments
 (0)