예제 #1
0
        public void TestNegative()
        {
            //Arrange
            var math = new MathUtility();

            //Act

            var result = math.AddNumbers(int.MaxValue, int.MinValue);//becos we did multiplication in math utility
            //Assert

            Assert.AreEqual(int.MaxValue, result);
        }
예제 #2
0
        public void TestAddNumbers()    
        {
            //Arrange
            var math = new MathUtility();

            //Act

            var result = math.AddNumbers(0, 0);
            //Assert

            Assert.AreEqual(0, result);
        }
예제 #3
0
        public void TestAddOneAndOne()
        {
            //Arrange
            var math = new MathUtility();

            //Act

            var result = math.AddNumbers(1, 1);//becos we did multiplication in math utility
            //Assert

            Assert.AreEqual(2, result);
        }