NET Core's TestServer to test Web API endpoints in an xUnit test project. ... Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);.
確定! 回上一頁