GetSubMatrix() public method

Returns a matrix with the specified row and column removed
public GetSubMatrix ( int indexOfRowToLeaveOut, int indexOfColumnToLeaveOut ) : Matrix
indexOfRowToLeaveOut int
indexOfColumnToLeaveOut int
return Matrix
        public void Matrix_GetSubMatrixStandardTest()
        {
            Matrix matrix1 = new Matrix(3,3);

            double[] matrix1Column1 = { 1, 5, 6 };
            double[] matrix1Column2 = { 2, 4, 7 };
            double[] matrix1Column3 = { 3, 6, 8 };

            matrix1.SetColumn(0, matrix1Column1);
            matrix1.SetColumn(1, matrix1Column2);
            matrix1.SetColumn(2, matrix1Column3);

            Matrix expectedResult = new Matrix(2);

            double[] expectedResultColumn1 = { 4, 7 };
            double[] expectedResultColumn2 = { 6, 8 };

            expectedResult.SetColumn(0, expectedResultColumn1);
            expectedResult.SetColumn(1, expectedResultColumn2);

            Matrix cofactor = new Matrix(2);

            Matrix actualResult = matrix1.GetSubMatrix(0, 0);

            bool equalityResult = (actualResult == expectedResult);

            equalityResult.Should().BeTrue();

        }