AddTo() public method

Returns the sum of this matrix and the passed matrix
public AddTo ( Matrix passedMatrix ) : Matrix
passedMatrix Matrix
return Matrix
        public void Matrix_IdentityMatrixAdditionTest()
        {
            Matrix matrix1 = new Matrix(3, 2);
            matrix1.SetElement(0, 0, 1);
            matrix1.SetElement(0, 1, 1);
            matrix1.SetElement(1, 0, 2);
            matrix1.SetElement(1, 1, 0);
            matrix1.SetElement(2, 0, 0);
            matrix1.SetElement(2, 1, 3);

            Matrix matrix2 = new Matrix(3, 2);
            matrix2.SetElement(0, 0, 0);
            matrix2.SetElement(0, 1, 0);
            matrix2.SetElement(1, 0, 0);
            matrix2.SetElement(1, 1, 0);
            matrix2.SetElement(2, 0, 0);
            matrix2.SetElement(2, 1, 0);

            Matrix resultingMatrix = matrix1.AddTo(matrix2);

            bool answer = (resultingMatrix == matrix1);
            answer.Should().BeTrue();

        }