Esempio n. 1
0
 private async Task Sum()
 {
     var result  = _mathOperationsService.Sum(FirstValue, SecondValue);
     var message = $"Result of {FirstValue} + {SecondValue} = {result}";
     await _windowsApiService.ShowMessage(message);
 }
        public void AssertSumReturnCorrectValue(double firstNumber, double secondNumber, double expected)
        {
            var actual = _mathOperationsService.Sum(firstNumber, secondNumber);

            Assert.Equal(expected, actual);
        }