public void Test_SubtractMethod()
        {
            BasicMaths bm  = new BasicMaths();
            double     res = bm.Substract(100, 50);

            Assert.AreEqual(res, 50);
        }
Exemplo n.º 2
0
        public void Test_SubtractMethod()
        {
            BasicMaths basicMaths = new BasicMaths();
            double     res        = basicMaths.Substract(10, 10);

            Assert.AreEqual(res, 0);
        }
Exemplo n.º 3
0
        public void Task_Subtract_TwoNumber()
        {
            BasicMaths bm = new BasicMaths();
            // Arrange
            var num1          = 2.9;
            var num2          = 3.1;
            var expectedValue = -0.2;

            // Act
            var sub = bm.Substract(num1, num2);

            //Assert
            Assert.Equal(expectedValue, sub, 1);
        }