public void Matrix_IsInvertibleFalseBecauseOfDeterminantTest() { Matrix matrix1 = new Matrix(2, 2); double[] matrix1Column1 = { 2, 4 }; double[] matrix1Column2 = { 4, 8 }; matrix1.SetColumn(0, matrix1Column1); matrix1.SetColumn(1, matrix1Column2); matrix1.IsInvertible().Should().BeFalse(); }
public void Matrix_IsInvertibleTrueTest() { Matrix matrix1 = new Matrix(2, 2); double[] matrix1Column1 = { 1, 4 }; double[] matrix1Column2 = { 4, 8 }; matrix1.SetColumn(0, matrix1Column1); matrix1.SetColumn(1, matrix1Column2); matrix1.IsInvertible().Should().BeTrue(); }