public void TestMethod2() { ArithmaticClass arithmaticClass = new ArithmaticClass(); int x = 10; int result = arithmaticClass.randomFunction(x); Assert.AreEqual(9, result); }
public void TestMethod1() { ArithmaticClass arithmaticClass = new ArithmaticClass(); int x = 10; int y = 20; int expectedResult = 30; int result = arithmaticClass.sumNumber(x, y); Assert.AreEqual(expectedResult, result); }