CanBeAddedTo() public méthode

Checks to see if this matrix and the passed matrix can be added together. In order to be able to add two matrices, they must have the same Distances.
public CanBeAddedTo ( Matrix passedMatrix ) : bool
passedMatrix Matrix
Résultat bool
        public void Matrix_CannotBeAddedTest()
        {
            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(2, 3);
            matrix2.SetElement(0, 0, 0);
            matrix2.SetElement(0, 1, 1);
            matrix2.SetElement(0, 2, 1);
            matrix2.SetElement(1, 0, 0);
            matrix2.SetElement(1, 1, 2);
            matrix2.SetElement(1, 2, 3);

            bool result = matrix1.CanBeAddedTo(matrix2);

            result.Should().BeFalse();

        }