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
513 B
C#
24 lines
513 B
C#
using Xunit.Abstractions;
|
|
|
|
namespace HttpClientStudy.UnitTest
|
|
{
|
|
/// <summary>
|
|
/// 使用 xUnit 单元测试框架
|
|
/// </summary>
|
|
public class UseXunit
|
|
{
|
|
private readonly ITestOutputHelper _logger;
|
|
|
|
public UseXunit(ITestOutputHelper outputHelper)
|
|
{
|
|
_logger = outputHelper;
|
|
}
|
|
|
|
[Fact]
|
|
public void UseXunit_Test()
|
|
{
|
|
_logger.WriteLine("使用 xUnit 单元测试框架!");
|
|
Assert.True(true,"使用 xUnit");
|
|
}
|
|
}
|
|
} |