public void TestAddNegative() { MyMath math = new MyMath(); Assert.Greater(55, math.Add(10, 20)); }
public void TestAddPositives() { MyMath math = new MyMath(); Assert.AreEqual(30, math.Add(10, 20)); }
static void Main(string[] args) { MyMath math = new MyMath(); Console.WriteLine(math.Add(10, 20)); Console.ReadLine(); }
static void Main(string[] args) { int x = Console.Read(); int y = Console.Read(); MyMath math = new MyMath(); Console.WriteLine("Your Addition is: "); Console.WriteLine(math.Add(x, y)); Console.ReadLine(); }
public void TestAddCore() { MyMath math = new MyMath(); Assert.Greater(math.Add(30, 10), 30); }
public void TestAddNegative() { MyMath math = new MyMath(); Assert.AreEqual(45, math.Add(10, 20)); }