Exemple #1
0
        public void DivisionTest()
        {
            //Arrange
            BasicMathOperations add = new BasicMathOperations();
            double expected         = 2;
            double expected2        = 3;

            //Act
            double actual  = add.Division(4, 2);
            double actual2 = add.Division(6, 2);

            //Assert
            Assert.Equal(expected, actual);
            Assert.Equal(expected2, actual2);
        }
Exemple #2
0
        public void DivisionShouldReturnExpectedValue(
            double x,
            double y,
            double expected)
        {
            //Arrange
            BasicMathOperations bm = new BasicMathOperations();

            //Act
            double actual = bm.Division(x, y);

            //Assert
            Assert.Equal(expected, actual);
        }