public void TestAddAndClear() { int res = cl.Add(2, 3); Assert.AreEqual(5, res); cl.AllClear(); int result = cl.Result; Assert.AreEqual(0, result); }
public void TestAddAndClear() { calcMethods.Add(20, 30); int actual = calcMethods.Result; int expected = 50; Assert.AreEqual(actual, expected); calcMethods.AllClear(); actual = calcMethods.Result; Assert.AreEqual(actual, 0); }
public void CleanUp() { calcMethods.AllClear(); }