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); }
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); }