public void Test_MultiplyMethod()
        {
            BasicMaths bm  = new BasicMaths();
            double     res = bm.Multiply(10, 10);

            Assert.AreEqual(res, 100);
        }
Esempio n. 2
0
        public void Task_Multiply_TwoNumber()
        {
            BasicMaths bm = new BasicMaths();
            // Arrange
            var num1          = 2.9;
            var num2          = 3.1;
            var expectedValue = 8.99;

            // Act
            var mult = bm.Multiply(num1, num2);

            //Assert
            Assert.Equal(expectedValue, mult, 2);
        }