diff --git a/UnitTests/UnitTests.HighPerformance.Shared/Extensions/Test_ArrayExtensions.2D.cs b/UnitTests/UnitTests.HighPerformance.Shared/Extensions/Test_ArrayExtensions.2D.cs index 8215eba7a12..66aab7c3fb6 100644 --- a/UnitTests/UnitTests.HighPerformance.Shared/Extensions/Test_ArrayExtensions.2D.cs +++ b/UnitTests/UnitTests.HighPerformance.Shared/Extensions/Test_ArrayExtensions.2D.cs @@ -194,6 +194,7 @@ public void Test_ArrayExtensions_2D_GetRow_Rectangle() Assert.AreSame(new int[1, 0].GetRow(0).ToArray(), Array.Empty()); Assert.ThrowsException(() => array.GetRow(-1)); + Assert.ThrowsException(() => array.GetRow(3)); Assert.ThrowsException(() => array.GetRow(20)); } @@ -221,6 +222,7 @@ public void Test_ArrayExtensions_2D_GetColumn_Rectangle() CollectionAssert.AreEqual(array.GetColumn(1).ToArray(), new[] { 2, 6, 10 }); Assert.ThrowsException(() => array.GetColumn(-1)); + Assert.ThrowsException(() => array.GetColumn(4)); Assert.ThrowsException(() => array.GetColumn(20)); }