Skip to content

Commit e584f0b

Browse files
committed
Fix UnpackerFactory tests.
1 parent bbef171 commit e584f0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/MsgPack.UnitTest/UnpackerFactoryTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,13 @@ public void TestCreate_ByteArray_Int32_ArrayIsNull()
213213
[Test]
214214
public void TestCreate_ByteArray_Int32_NegativeOffset()
215215
{
216-
Assert.Throws<ArgumentOutOfRangeException>( () => { using ( Unpacker.Create( new byte[ 0 ], -1 ) ) { } } );
216+
Assert.Throws<ArgumentOutOfRangeException>( () => { using ( Unpacker.Create( new byte[ 1 ], -1 ) ) { } } );
217217
}
218218

219219
[Test]
220220
public void TestCreate_ByteArray_Int32_TooLargeOffset()
221221
{
222-
Assert.Throws<ArgumentOutOfRangeException>( () => { using ( Unpacker.Create( new byte[ 1 ], 2 ) ) { } } );
222+
Assert.Throws<ArgumentException>( () => { using ( Unpacker.Create( new byte[ 1 ], 2 ) ) { } } );
223223
}
224224

225225
[Test]

0 commit comments

Comments
 (0)