You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
686 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HttpClientStudy.UnitTest
{
public class HttpErrorTest : IDisposable
{
private readonly ITestOutputHelper _logger;
private readonly HttpError _httpError = new HttpError();
public HttpErrorTest(ITestOutputHelper outputHelper)
{
_logger = outputHelper;
}
[Fact]
public async void Test()
{
var code = await _httpError.Http404Async();
Assert.Equal(HttpStatusCode.NotFound, code);
}
public void Dispose()
{
}
}
}