public void sharedMathMinusTwoNumbers()
        {
            var sharedMath = new sharedMath();

            var result = sharedMath.minusTwoNumbers(5, 2);

            Assert.AreEqual(3, result);
        }
Exemple #2
0
        public ActionResult <sharedMath> Get(int a, int b)
        {
            sharedMath myObj = new sharedMath();

            myObj.mathresult = myObj.minusTwoNumbers(a, b);

            return(myObj);
        }
Exemple #3
0
        public void minusTwoNumbersReturnsExpectedResult()
        {
            //arrange
            sharedMath myObj = new sharedMath();

            //act
            int myTest = myObj.minusTwoNumbers(2, 1);

            //assert
            Assert.AreEqual(myTest, 1);
        }