コード例 #1
0
 private async Task Divide()
 {
     var result  = _mathOperationsService.Divide(FirstValue, SecondValue);
     var message = $"Result of {FirstValue} / {SecondValue} = {result}";
     await _windowsApiService.ShowMessage(message);
 }
コード例 #2
0
        public void AssertDivideReturnCorrectValue(double firstNumber, double secondNumber, double expected)
        {
            var actual = _mathOperationsService.Divide(firstNumber, secondNumber);

            Assert.Equal(expected, actual);
        }