@@ -283,18 +283,18 @@ public void GetChars_WhenSelectText_MoveCharsToBuffer()
283283 Assert . Equal ( $ "dataOffset must be between 0 and { int . MaxValue } ",
284284 Assert . Throws < IndexOutOfRangeException > ( ( ) => ydbDataReader . GetChars ( 0 , - 1 , null , 0 , 6 ) ) . Message ) ;
285285 Assert . Equal ( $ "dataOffset must be between 0 and { int . MaxValue } ",
286- Assert . Throws < IndexOutOfRangeException > (
287- ( ) => ydbDataReader . GetChars ( 0 , long . MaxValue , null , 0 , 6 ) ) . Message ) ;
286+ Assert . Throws < IndexOutOfRangeException > ( ( ) =>
287+ ydbDataReader . GetChars ( 0 , long . MaxValue , null , 0 , 6 ) ) . Message ) ;
288288
289- Assert . Equal ( "bufferOffset must be between 0 and 10" , Assert . Throws < IndexOutOfRangeException > (
290- ( ) => ydbDataReader . GetChars ( 0 , 0 , bufferChars , - 1 , 6 ) ) . Message ) ;
291- Assert . Equal ( "bufferOffset must be between 0 and 10" , Assert . Throws < IndexOutOfRangeException > (
292- ( ) => ydbDataReader . GetChars ( 0 , 0 , bufferChars , - 1 , 6 ) ) . Message ) ;
289+ Assert . Equal ( "bufferOffset must be between 0 and 10" ,
290+ Assert . Throws < IndexOutOfRangeException > ( ( ) => ydbDataReader . GetChars ( 0 , 0 , bufferChars , - 1 , 6 ) ) . Message ) ;
291+ Assert . Equal ( "bufferOffset must be between 0 and 10" ,
292+ Assert . Throws < IndexOutOfRangeException > ( ( ) => ydbDataReader . GetChars ( 0 , 0 , bufferChars , - 1 , 6 ) ) . Message ) ;
293293
294- Assert . Equal ( "length must be between 0 and 10" , Assert . Throws < IndexOutOfRangeException > (
295- ( ) => ydbDataReader . GetChars ( 0 , 0 , bufferChars , 3 , - 1 ) ) . Message ) ;
296- Assert . Equal ( "bufferOffset must be between 0 and 5" , Assert . Throws < IndexOutOfRangeException > (
297- ( ) => ydbDataReader . GetChars ( 0 , 0 , bufferChars , 8 , 5 ) ) . Message ) ;
294+ Assert . Equal ( "length must be between 0 and 10" ,
295+ Assert . Throws < IndexOutOfRangeException > ( ( ) => ydbDataReader . GetChars ( 0 , 0 , bufferChars , 3 , - 1 ) ) . Message ) ;
296+ Assert . Equal ( "bufferOffset must be between 0 and 5" ,
297+ Assert . Throws < IndexOutOfRangeException > ( ( ) => ydbDataReader . GetChars ( 0 , 0 , bufferChars , 8 , 5 ) ) . Message ) ;
298298
299299 Assert . Equal ( 6 , ydbDataReader . GetChars ( 0 , 0 , bufferChars , 4 , 6 ) ) ;
300300 checkBuffer [ 4 ] = 'a' ;
@@ -330,19 +330,18 @@ public void GetBytes_WhenSelectBytes_MoveBytesToBuffer()
330330 Assert . Equal ( 7 , ydbDataReader . GetBytes ( 0 , 4 , null , 0 , 6 ) ) ;
331331 Assert . Equal ( $ "dataOffset must be between 0 and { int . MaxValue } ",
332332 Assert . Throws < IndexOutOfRangeException > ( ( ) => ydbDataReader . GetBytes ( 0 , - 1 , null , 0 , 6 ) ) . Message ) ;
333- Assert . Equal ( $ "dataOffset must be between 0 and { int . MaxValue } ",
334- Assert . Throws < IndexOutOfRangeException > (
335- ( ) => ydbDataReader . GetBytes ( 0 , long . MaxValue , null , 0 , 6 ) ) . Message ) ;
336-
337- Assert . Equal ( "bufferOffset must be between 0 and 10" , Assert . Throws < IndexOutOfRangeException > (
338- ( ) => ydbDataReader . GetBytes ( 0 , 0 , bufferChars , - 1 , 6 ) ) . Message ) ;
339- Assert . Equal ( "bufferOffset must be between 0 and 10" , Assert . Throws < IndexOutOfRangeException > (
340- ( ) => ydbDataReader . GetBytes ( 0 , 0 , bufferChars , - 1 , 6 ) ) . Message ) ;
341-
342- Assert . Equal ( "length must be between 0 and 10" , Assert . Throws < IndexOutOfRangeException > (
343- ( ) => ydbDataReader . GetBytes ( 0 , 0 , bufferChars , 3 , - 1 ) ) . Message ) ;
344- Assert . Equal ( "bufferOffset must be between 0 and 5" , Assert . Throws < IndexOutOfRangeException > (
345- ( ) => ydbDataReader . GetBytes ( 0 , 0 , bufferChars , 8 , 5 ) ) . Message ) ;
333+ Assert . Equal ( $ "dataOffset must be between 0 and { int . MaxValue } ", Assert . Throws < IndexOutOfRangeException > ( ( ) =>
334+ ydbDataReader . GetBytes ( 0 , long . MaxValue , null , 0 , 6 ) ) . Message ) ;
335+
336+ Assert . Equal ( "bufferOffset must be between 0 and 10" ,
337+ Assert . Throws < IndexOutOfRangeException > ( ( ) => ydbDataReader . GetBytes ( 0 , 0 , bufferChars , - 1 , 6 ) ) . Message ) ;
338+ Assert . Equal ( "bufferOffset must be between 0 and 10" , Assert . Throws < IndexOutOfRangeException > ( ( ) =>
339+ ydbDataReader . GetBytes ( 0 , 0 , bufferChars , - 1 , 6 ) ) . Message ) ;
340+
341+ Assert . Equal ( "length must be between 0 and 10" , Assert . Throws < IndexOutOfRangeException > ( ( ) =>
342+ ydbDataReader . GetBytes ( 0 , 0 , bufferChars , 3 , - 1 ) ) . Message ) ;
343+ Assert . Equal ( "bufferOffset must be between 0 and 5" , Assert . Throws < IndexOutOfRangeException > ( ( ) =>
344+ ydbDataReader . GetBytes ( 0 , 0 , bufferChars , 8 , 5 ) ) . Message ) ;
346345
347346 Assert . Equal ( 6 , ydbDataReader . GetBytes ( 0 , 0 , bufferChars , 4 , 6 ) ) ;
348347 checkBuffer [ 4 ] = ( byte ) 'a' ;
0 commit comments