Beispiel #1
0
 public void TestDivide()
 {
     StringAssert.AreEqualIgnoringCase("x = 63250", SimpleEquationKata.SolveTheEquation("x / 5 = 12650"),
                                       "Divide operator test failed");
 }
Beispiel #2
0
 public void TestMultiply()
 {
     StringAssert.AreEqualIgnoringCase("x = 68.15", SimpleEquationKata.SolveTheEquation("x * 1358 = 92548"),
                                       "Multiply operator test failed");
 }
Beispiel #3
0
 public void TestMinus()
 {
     StringAssert.AreEqualIgnoringCase("x = 6553", SimpleEquationKata.SolveTheEquation("x - 1003 = 5550"),
                                       "Minus operator test failed");
 }
Beispiel #4
0
 public void TestPlus()
 {
     StringAssert.AreEqualIgnoringCase("x = 17", SimpleEquationKata.SolveTheEquation("x + 85 = 102"),
                                       "Plus operator test failed");
 }