Exemplo n.º 1
0
        public void Test_SubstractMethod()
        {
            // Arrange
            int           x = 10; int y = 6;
            MathOpeartion oMathOPeration = new MathOpeartion();

            // Act
            int result = oMathOPeration.Substract(x, y);

            // Assert
            Assert.AreEqual(result, 4);
        }
Exemplo n.º 2
0
        public void Test_AddMethod()
        {
            // Arrange
            int           x = 10; int y = 6;
            MathOpeartion oMathOPeration = new MathOpeartion();

            // Act
            int result = oMathOPeration.Add(x, y);

            // Assert
            Assert.AreEqual(result, 16);
        }