Esempio n. 1
0
        public void AdditionTest()
        {
            //Arrange
            BasicMathOperations add = new BasicMathOperations();
            double expected         = 2;
            double expected2        = 3;

            //Act
            double actual  = add.Addition(1, 1);
            double actual2 = add.Addition(1, 2);

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

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

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