File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments