public CanBeAddedTo ( Matrix passedMatrix ) : bool | ||
passedMatrix | Matrix | |
return | 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(); }