コード例 #1
0
        public async Task CalculatorServiceAddFunction_TwoValidParams_ReturnSuccessResult()
        {
            HttpServiceRequester serviceRequester = new HttpServiceRequester();
            string serviceResult = await serviceRequester.SendHttpGetAsync("https://localhost:44389/api/values/add/f=12&s=13");

            Assert.Equal("25", serviceResult);
        }
コード例 #2
0
        public async Task CalculatorServiceDivideFunction_TwoValidParams_ReturnInvalidResult()
        {
            HttpServiceRequester serviceRequester = new HttpServiceRequester();
            string serviceResult = await serviceRequester.SendHttpGetAsync("https://localhost:44389/api/values/divide/f=12&s=13");

            Assert.NotEqual("12", serviceResult);
        }