Esempio n. 1
0
 public void TestSubtractNegativeResult()
 {
     Converter s = new Converter();
     Assert.AreEqual(-2, s.Calculate((Converter.CalcFunction.Subtract), ("IV"), ("VI")));
 }
Esempio n. 2
0
 public void TestSubtract()
 {
     Converter s = new Converter();
     Assert.AreEqual(2, s.Calculate((Converter.CalcFunction.Subtract), ("III"), ("I")));
 }
Esempio n. 3
0
 public void TestMultiply()
 {
     Converter m = new Converter();
     Assert.AreEqual(10, m.Calculate((Converter.CalcFunction.Multiply), ("II"), ("V")));
 }
Esempio n. 4
0
 public void TestAdd()
 {
     Converter a = new Converter();
     Assert.AreEqual(4, a.Calculate((Converter.CalcFunction.Add), ("III"),("I")));
 }
Esempio n. 5
0
 public void TestEveryNumeral()
 {
     Converter e = new Converter();
     Assert.AreEqual(1470, e.Calculate((Converter.CalcFunction.Add), ("MCDXLIII"), ("XXVII")));
 }
Esempio n. 6
0
 public void TestDivide()
 {
     Converter d = new Converter();
     Assert.AreEqual(2, d.Calculate((Converter.CalcFunction.Divide), ("X"), ("V")));
 }