Пример #1
0
        public void AddTest()
        {
            Calculator calc = new Calculator();
            int number1 = 4;
            int number2 = 6;
            int expected = 10;

            int actual = calc.Add(number1, number2);

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void AddTest()
        {
            //arrange
            Calculator calr = new Calculator();
            int number = 5;
            int number2 = 7;
            int expected = 12;

            //act
            int actual = calr.Add(number, number2);

            //Assert
            Assert.AreEqual(expected, actual);
        }
        public void AddTest()
        {
            // arrange
            Calculator calc = new Calculator();
            int number1 = 5;
            int number2 = 7;
            int excepted = 12;

            // act
            int actual = calc.Add(number1, number2);

            // assert
            Assert.AreEqual(excepted, actual);
        }