Example #1
0
        public void TestSquare()
        {
            calcLib.Calculation objc = new calcLib.Calculation();
            int num1   = 25;
            int result = num1 * num1;

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

            Assert.AreEqual(squareroot, objc.squareroot(num1));
        }