You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Throws.Exception.TypeOf<IndexOutOfRangeException>(),"Length great than output buffer length");
1406
1406
// Close in the middle of a column
@@ -1662,7 +1662,7 @@ public async Task GetChars()
1662
1662
// Jump to another column from the middle of the column
1663
1663
reader.GetChars(5,0,actual,0,2);
1664
1664
Assert.That(reader.GetChars(5,expected.Length-1,actual,0,2),Is.EqualTo(1),"Length greater than data length");
1665
-
Assert.That(actual[0],Is.EqualTo(expected[expected.Length-1]),"Length greater than data length");
1665
+
Assert.That(actual[0],Is.EqualTo(expected[^1]),"Length greater than data length");
1666
1666
Assert.That(()=>reader.GetChars(5,0,actual,0,actual.Length+1),Throws.Exception.TypeOf<IndexOutOfRangeException>(),"Length great than output buffer length");
0 commit comments