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.

24 lines
543 B
C#

1 year ago
using Xunit.Abstractions;
1 year ago
namespace HttpClientStudy.UnitTest
{
/// <summary>
1 year ago
/// 使用 xUnit 单元测试框架
1 year ago
/// </summary>
1 year ago
public class UseXUnitTest
1 year ago
{
private readonly ITestOutputHelper _logger;
1 year ago
public UseXUnitTest(ITestOutputHelper outputHelper)
1 year ago
{
_logger = outputHelper;
}
[Fact]
1 year ago
public void UseXUnit_Test()
1 year ago
{
1 year ago
_logger.WriteLine("使用 xUnit 单元测试框架!");
Assert.True(true,"使用 xUnit");
1 year ago
}
}
}