Skip to content

Commit 6e3800c

Browse files
committed
Fix existing test cases due to #270.
1 parent ce2bfcf commit 6e3800c

9 files changed

+20
-20
lines changed

test/MsgPack.UnitTest.CodeDom/Serialization/ArrayCodeDomBasedAutoMessagePackSerializerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9285,7 +9285,7 @@ public void TestReadOnlyAndConstructor()
92859285
Assert.That(
92869286
serializedItem,
92879287
Is.EqualTo(
9288-
new byte[] { 0x92, 0xB0 }.Concat( item.Id.ToByteArray() )
9288+
new byte[] { 0x92, MessagePackCode.Bin8, 0x10 }.Concat( item.Id.ToByteArray() )
92899289
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
92909290
)
92919291
);
@@ -9304,7 +9304,7 @@ public void TestGetOnlyAndConstructor()
93049304
Assert.That(
93059305
serializedItem,
93069306
Is.EqualTo(
9307-
new byte[] { 0x92, 0xB0 }.Concat( item.Id.ToByteArray() )
9307+
new byte[] { 0x92, MessagePackCode.Bin8, 0x10 }.Concat( item.Id.ToByteArray() )
93089308
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
93099309
)
93109310
);

test/MsgPack.UnitTest.CodeDom/Serialization/MapCodeDomBasedAutoMessagePackSerializerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9597,7 +9597,7 @@ public void TestReadOnlyAndConstructor()
95979597
Assert.That(
95989598
serializedItem,
95999599
Is.EqualTo( new byte[] { 0x82, 0xA2 }.Concat( Encoding.UTF8.GetBytes( "Id" ) )
9600-
.Concat( new byte[] { 0xB0 } ).Concat( item.Id.ToByteArray() )
9600+
.Concat( new byte[] { MessagePackCode.Bin8, 0x10 } ).Concat( item.Id.ToByteArray() )
96019601
.Concat( new byte[] { 0xA4 } ).Concat( Encoding.UTF8.GetBytes( "Ints" ) )
96029602
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
96039603
)
@@ -9617,7 +9617,7 @@ public void TestGetOnlyAndConstructor()
96179617
Assert.That(
96189618
serializedItem,
96199619
Is.EqualTo( new byte[] { 0x82, 0xA2 }.Concat( Encoding.UTF8.GetBytes( "Id" ) )
9620-
.Concat( new byte[] { 0xB0 } ).Concat( item.Id.ToByteArray() )
9620+
.Concat( new byte[] { MessagePackCode.Bin8, 0x10 } ).Concat( item.Id.ToByteArray() )
96219621
.Concat( new byte[] { 0xA4 } ).Concat( Encoding.UTF8.GetBytes( "Ints" ) )
96229622
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
96239623
)

test/MsgPack.UnitTest/Serialization/ArrayFieldBasedAutoMessagePackSerializerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9285,7 +9285,7 @@ public void TestReadOnlyAndConstructor()
92859285
Assert.That(
92869286
serializedItem,
92879287
Is.EqualTo(
9288-
new byte[] { 0x92, 0xB0 }.Concat( item.Id.ToByteArray() )
9288+
new byte[] { 0x92, MessagePackCode.Bin8, 0x10 }.Concat( item.Id.ToByteArray() )
92899289
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
92909290
)
92919291
);
@@ -9304,7 +9304,7 @@ public void TestGetOnlyAndConstructor()
93049304
Assert.That(
93059305
serializedItem,
93069306
Is.EqualTo(
9307-
new byte[] { 0x92, 0xB0 }.Concat( item.Id.ToByteArray() )
9307+
new byte[] { 0x92, MessagePackCode.Bin8, 0x10 }.Concat( item.Id.ToByteArray() )
93089308
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
93099309
)
93109310
);

test/MsgPack.UnitTest/Serialization/ArrayGenerationBasedAutoMessagePackSerializerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5567,7 +5567,7 @@ public void TestReadOnlyAndConstructor()
55675567
Assert.That(
55685568
serializedItem,
55695569
Is.EqualTo(
5570-
new byte[] { 0x92, 0xB0 }.Concat( item.Id.ToByteArray() )
5570+
new byte[] { 0x92, MessagePackCode.Bin8, 0x10 }.Concat( item.Id.ToByteArray() )
55715571
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
55725572
)
55735573
);
@@ -5586,7 +5586,7 @@ public void TestGetOnlyAndConstructor()
55865586
Assert.That(
55875587
serializedItem,
55885588
Is.EqualTo(
5589-
new byte[] { 0x92, 0xB0 }.Concat( item.Id.ToByteArray() )
5589+
new byte[] { 0x92, MessagePackCode.Bin8, 0x10 }.Concat( item.Id.ToByteArray() )
55905590
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
55915591
)
55925592
);

test/MsgPack.UnitTest/Serialization/ArrayReflectionBasedAutoMessagePackSerializerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9186,7 +9186,7 @@ public void TestReadOnlyAndConstructor()
91869186
Assert.That(
91879187
serializedItem,
91889188
Is.EqualTo(
9189-
new byte[] { 0x92, 0xB0 }.Concat( item.Id.ToByteArray() )
9189+
new byte[] { 0x92, MessagePackCode.Bin8, 0x10 }.Concat( item.Id.ToByteArray() )
91909190
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
91919191
)
91929192
);
@@ -9205,7 +9205,7 @@ public void TestGetOnlyAndConstructor()
92059205
Assert.That(
92069206
serializedItem,
92079207
Is.EqualTo(
9208-
new byte[] { 0x92, 0xB0 }.Concat( item.Id.ToByteArray() )
9208+
new byte[] { 0x92, MessagePackCode.Bin8, 0x10 }.Concat( item.Id.ToByteArray() )
92099209
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
92109210
)
92119211
);

test/MsgPack.UnitTest/Serialization/AutoMessagePackSerializerTest.ttinclude

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4315,7 +4315,7 @@ namespace MsgPack.Serialization
43154315
Assert.That(
43164316
serializedItem,
43174317
Is.EqualTo(
4318-
new byte[] { 0x92, 0xB0 }.Concat( item.Id.ToByteArray() )
4318+
new byte[] { 0x92, MessagePackCode.Bin8, 0x10 }.Concat( item.Id.ToByteArray() )
43194319
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
43204320
)
43214321
);
@@ -4327,7 +4327,7 @@ namespace MsgPack.Serialization
43274327
Assert.That(
43284328
serializedItem,
43294329
Is.EqualTo( new byte[] { 0x82, 0xA2 }.Concat( Encoding.UTF8.GetBytes( "Id" ) )
4330-
.Concat( new byte[] { 0xB0 } ).Concat( item.Id.ToByteArray() )
4330+
.Concat( new byte[] { MessagePackCode.Bin8, 0x10 } ).Concat( item.Id.ToByteArray() )
43314331
.Concat( new byte[] { 0xA4 } ).Concat( Encoding.UTF8.GetBytes( "Ints" ) )
43324332
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
43334333
)
@@ -4354,7 +4354,7 @@ namespace MsgPack.Serialization
43544354
Assert.That(
43554355
serializedItem,
43564356
Is.EqualTo(
4357-
new byte[] { 0x92, 0xB0 }.Concat( item.Id.ToByteArray() )
4357+
new byte[] { 0x92, MessagePackCode.Bin8, 0x10 }.Concat( item.Id.ToByteArray() )
43584358
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
43594359
)
43604360
);
@@ -4366,7 +4366,7 @@ namespace MsgPack.Serialization
43664366
Assert.That(
43674367
serializedItem,
43684368
Is.EqualTo( new byte[] { 0x82, 0xA2 }.Concat( Encoding.UTF8.GetBytes( "Id" ) )
4369-
.Concat( new byte[] { 0xB0 } ).Concat( item.Id.ToByteArray() )
4369+
.Concat( new byte[] { MessagePackCode.Bin8, 0x10 } ).Concat( item.Id.ToByteArray() )
43704370
.Concat( new byte[] { 0xA4 } ).Concat( Encoding.UTF8.GetBytes( "Ints" ) )
43714371
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
43724372
)

test/MsgPack.UnitTest/Serialization/MapFieldBasedAutoMessagePackSerializerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9597,7 +9597,7 @@ public void TestReadOnlyAndConstructor()
95979597
Assert.That(
95989598
serializedItem,
95999599
Is.EqualTo( new byte[] { 0x82, 0xA2 }.Concat( Encoding.UTF8.GetBytes( "Id" ) )
9600-
.Concat( new byte[] { 0xB0 } ).Concat( item.Id.ToByteArray() )
9600+
.Concat( new byte[] { MessagePackCode.Bin8, 0x10 } ).Concat( item.Id.ToByteArray() )
96019601
.Concat( new byte[] { 0xA4 } ).Concat( Encoding.UTF8.GetBytes( "Ints" ) )
96029602
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
96039603
)
@@ -9617,7 +9617,7 @@ public void TestGetOnlyAndConstructor()
96179617
Assert.That(
96189618
serializedItem,
96199619
Is.EqualTo( new byte[] { 0x82, 0xA2 }.Concat( Encoding.UTF8.GetBytes( "Id" ) )
9620-
.Concat( new byte[] { 0xB0 } ).Concat( item.Id.ToByteArray() )
9620+
.Concat( new byte[] { MessagePackCode.Bin8, 0x10 } ).Concat( item.Id.ToByteArray() )
96219621
.Concat( new byte[] { 0xA4 } ).Concat( Encoding.UTF8.GetBytes( "Ints" ) )
96229622
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
96239623
)

test/MsgPack.UnitTest/Serialization/MapGenerationBasedAutoMessagePackSerializerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5567,7 +5567,7 @@ public void TestReadOnlyAndConstructor()
55675567
Assert.That(
55685568
serializedItem,
55695569
Is.EqualTo( new byte[] { 0x82, 0xA2 }.Concat( Encoding.UTF8.GetBytes( "Id" ) )
5570-
.Concat( new byte[] { 0xB0 } ).Concat( item.Id.ToByteArray() )
5570+
.Concat( new byte[] { MessagePackCode.Bin8, 0x10 } ).Concat( item.Id.ToByteArray() )
55715571
.Concat( new byte[] { 0xA4 } ).Concat( Encoding.UTF8.GetBytes( "Ints" ) )
55725572
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
55735573
)
@@ -5587,7 +5587,7 @@ public void TestGetOnlyAndConstructor()
55875587
Assert.That(
55885588
serializedItem,
55895589
Is.EqualTo( new byte[] { 0x82, 0xA2 }.Concat( Encoding.UTF8.GetBytes( "Id" ) )
5590-
.Concat( new byte[] { 0xB0 } ).Concat( item.Id.ToByteArray() )
5590+
.Concat( new byte[] { MessagePackCode.Bin8, 0x10 } ).Concat( item.Id.ToByteArray() )
55915591
.Concat( new byte[] { 0xA4 } ).Concat( Encoding.UTF8.GetBytes( "Ints" ) )
55925592
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
55935593
)

test/MsgPack.UnitTest/Serialization/MapReflectionBasedAutoMessagePackSerializerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9498,7 +9498,7 @@ public void TestReadOnlyAndConstructor()
94989498
Assert.That(
94999499
serializedItem,
95009500
Is.EqualTo( new byte[] { 0x82, 0xA2 }.Concat( Encoding.UTF8.GetBytes( "Id" ) )
9501-
.Concat( new byte[] { 0xB0 } ).Concat( item.Id.ToByteArray() )
9501+
.Concat( new byte[] { MessagePackCode.Bin8, 0x10 } ).Concat( item.Id.ToByteArray() )
95029502
.Concat( new byte[] { 0xA4 } ).Concat( Encoding.UTF8.GetBytes( "Ints" ) )
95039503
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
95049504
)
@@ -9518,7 +9518,7 @@ public void TestGetOnlyAndConstructor()
95189518
Assert.That(
95199519
serializedItem,
95209520
Is.EqualTo( new byte[] { 0x82, 0xA2 }.Concat( Encoding.UTF8.GetBytes( "Id" ) )
9521-
.Concat( new byte[] { 0xB0 } ).Concat( item.Id.ToByteArray() )
9521+
.Concat( new byte[] { MessagePackCode.Bin8, 0x10 } ).Concat( item.Id.ToByteArray() )
95229522
.Concat( new byte[] { 0xA4 } ).Concat( Encoding.UTF8.GetBytes( "Ints" ) )
95239523
.Concat( new byte[] { 0x92, 5, 11 } ).ToArray()
95249524
)

0 commit comments

Comments
 (0)