Example #1
0
        /// <summary>
        /// Error Tests
        /// </summary>
        //[TestCase(1, 1, 3)]
        //[TestCase(1, 1, -2)]
        //[TestCase(-1, -1, 2)]
        public void Add_WhenCalled_ReturnTheGreatherArgument(int a, int b, int expectedResult)
        {
            /// <summary>
            /// Act
            /// </summary>
            var result = _mathlab2.Add(a, b);

            /// <summary>
            /// Assert
            /// </summary>
            Assert.That(result, Is.EqualTo(expectedResult));
        }
        public void Add_WhenCalled_ReturnTheSunArguments(int a, int b, int expectedResult)
        {
            var result = _math.Add(a, b);

            Assert.That(result == expectedResult);
        }