Exemple #1
0
 public void TestDivisionByZero()
 {
     var op = new Calculator2.calOperations();
     var res = op.Action(6, 0, "/");
     NUnit.Framework.Assert.AreEqual("Деление на ноль", res);
 }
Exemple #2
0
 public void TestSubtraction()
 {
     var op = new Calculator2.calOperations();
     var res = op.Action(6, 2, "-");
     NUnit.Framework.Assert.AreEqual("4", res);
 }
Exemple #3
0
 public void TestMultiplication()
 {
     var op = new Calculator2.calOperations();
     var res = op.Action(8, 3, "*");
     NUnit.Framework.Assert.AreEqual("24", res);
 }
Exemple #4
0
 public void TestAddition()
 {
     var op = new Calculator2.calOperations();
     var res = op.Action(3, 5, "+");
     NUnit.Framework.Assert.AreEqual("8", res);
 }
Exemple #5
0
 public void TestDivision()
 {
     var op = new Calculator2.calOperations();
     var res = op.Action(6, 3, "/");
     NUnit.Framework.Assert.AreEqual("2", res);
 }