Example #1
0
        public void MultipleTest()
        {
            // Arrange
            Calculator calc = new Calculator();
            int number1 = 5;
            int number2 = 7;
            int expected = 35;

            // Act
            int actual = calc.Multiple(number1, number2);

            // Assert
            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void AddTest()
        {
            // Arrange
            Calculator calc = new Calculator();
            int number1 = 5;
            int number2 = 7;
            int expected = 12;

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

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