public void TestSquare() { calcLib.Calculation objc = new calcLib.Calculation(); int num1 = 25; int result = num1 * num1; Assert.AreEqual(result, objc.square(num1)); }
public void TestSquareroot() { calcLib.Calculation objc = new calcLib.Calculation(); int num1 = 25; int squareroot = (int)Math.Sqrt(num1); Assert.AreEqual(squareroot, objc.squareroot(num1)); }