public void SubTest() { int expected = 8; Calculate calculate = new Calculate(); Assert.AreEqual(expected, calculate.sub(10, 2)); Assert.AreNotEqual(expected, calculate.sub(10, 0)); }
public void AddTest() { int expected = 12; Calculate calculate = new Calculate(); Assert.AreEqual(expected, calculate.add(9, 3)); Assert.AreNotEqual(expected, calculate.add(9, 2)); }