public void DoubleNegativeWithOtherOperators() { var result = new GrundrechnerTest().TestSolve("2 - -2 * 2 + 2"); Assert.True(result == 8); }
public void EquationDecimal() { var result = new GrundrechnerTest().TestSolve("10,5 + 3,5 + 6"); Assert.True(result == 20); }
public void DoubleNegative() { var result = new GrundrechnerTest().TestSolve("2 - -2"); Assert.True(result == 4); }
public void EquationWithoutDecimalandThreeBracket() { var result = new GrundrechnerTest().TestSolve("20 - ( 10 + ( 2 * ( 2 + 3 ) ) )"); Assert.True(result == 0); }
public void EquationDecimalRightlastDecimal() { var result = new GrundrechnerTest().TestSolve("10,5 + 3,5"); Assert.True(result == 14); }
public void EquationWithoutDecimalandAndBracketsPunktVorStrich() { var result = new GrundrechnerTest().TestSolve("20 - 10 * 2"); Assert.True(result == 0); }
public void EquationWithoutDecimalandOneBracket() { var result = new GrundrechnerTest().TestSolve("20 - ( 10 + 2 )"); Assert.True(result == 8); }
public void EquationWithoutDecimalandAndBracketsSubdraction() { var result = new GrundrechnerTest().TestSolve("20 - 10"); Assert.True(result == 10); }
public void EquationWithoutDecimalandAndBracketsAllesVermischt() { var result = new GrundrechnerTest().TestSolve("10 + 10 - 20"); Assert.True(result == 0); }
public void EquationWithoutDecimalandAndBracketsDivision() { var result = new GrundrechnerTest().TestSolve("10 / 10"); Assert.True(result == 1); }
public void EquationWithoutDecimalandAndBracketsMultiplication() { var result = new GrundrechnerTest().TestSolve("10 * 10"); Assert.True(result == 100); }
public void sameBracketLevels() { var result = new GrundrechnerTest().TestSolve("( ( 12 - 6 ) * 2 ) + ( ( 4 - 8 ) - 9 )"); Assert.True(result == -1); }
public void Multiplicationwithoutasteriks() { var result = new GrundrechnerTest().TestSolve(" 1 ( 1 - 2 )"); Assert.True(result == -1); }
public void DevidedByMinus() { var result = new GrundrechnerTest().TestSolve(" 7 / -2"); Assert.True(result == -3.5); }
public void EquationNegativeMultiplication() { var result = new GrundrechnerTest().TestSolve(" 1 * -2 "); Assert.True(result == -2); }
public void EquationNegativeDecimal() { var result = new GrundrechnerTest().TestSolve("-1,5 + 1 - -2 "); Assert.True(result == 1.5); }