Example #1
0
        public void AddTwoFloatNumbersOK(float a, float b)
        {
            ICalculator <float> addCalc = new Calculator.AddCalculator <float>();

            var expectedResult = a + b;
            var actualResult   = addCalc.Calculate(a, b);

            Assert.Equal(expectedResult, actualResult);
        }
Example #2
0
        public void AddTwoIntNumbersOK(int a, int b)
        {
            ICalculator <int> addCalc = new Calculator.AddCalculator <int>();

            var expectedResult = a + b;
            var actualResult   = addCalc.Calculate(a, b);

            Assert.Equal(expectedResult, actualResult);
        }