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#

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