We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbef171 commit e584f0bCopy full SHA for e584f0b
1 file changed
test/MsgPack.UnitTest/UnpackerFactoryTest.cs
@@ -213,13 +213,13 @@ public void TestCreate_ByteArray_Int32_ArrayIsNull()
213
[Test]
214
public void TestCreate_ByteArray_Int32_NegativeOffset()
215
{
216
- Assert.Throws<ArgumentOutOfRangeException>( () => { using ( Unpacker.Create( new byte[ 0 ], -1 ) ) { } } );
+ Assert.Throws<ArgumentOutOfRangeException>( () => { using ( Unpacker.Create( new byte[ 1 ], -1 ) ) { } } );
217
}
218
219
220
public void TestCreate_ByteArray_Int32_TooLargeOffset()
221
222
- Assert.Throws<ArgumentOutOfRangeException>( () => { using ( Unpacker.Create( new byte[ 1 ], 2 ) ) { } } );
+ Assert.Throws<ArgumentException>( () => { using ( Unpacker.Create( new byte[ 1 ], 2 ) ) { } } );
223
224
225
0 commit comments