public void TestArithmetic_negative_A_YES() { Arithmetic arith = new Arithmetic(); int a = -5; int b = 6; int c = -30; string result = arith.arithmetic(a, b, c); string expected = "YES"; Assert.AreEqual(expected, result); }
public void TestArithmetic_negative_B_NO() { Arithmetic arith = new Arithmetic(); int a = 5; int b = -6; int c = 30; string result = arith.arithmetic(a, b, c); string expected = "NO"; Assert.AreEqual(expected, result); }
static void Main(string[] args) { int a = 5; int b = 6; int c = 30; System.Console.WriteLine("a = {0}", a); System.Console.WriteLine("a = {0}", b); System.Console.WriteLine("a = {0}", c); Arithmetic arith = new Arithmetic(); System.Console.WriteLine("result = {0}", arith.arithmetic(a, b, c)); System.Console.WriteLine(); a = 5; b = 6; c = 10; System.Console.WriteLine("a = {0}", a); System.Console.WriteLine("a = {0}", b); System.Console.WriteLine("a = {0}", c); System.Console.WriteLine("result = {0}", arith.arithmetic(a, b, c)); }
public void TestArithmetic_zerro_ALL_YES() { Arithmetic arith = new Arithmetic(); int a = 0; int b = 0; int c = 0; string result = arith.arithmetic(a, b, c); string expected = "YES"; Assert.AreEqual(expected, result); }