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
661 B
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

namespace OptionStudy.UnitApp
{
//[Startup(typeof(Startup), Shared = false)]
public class UseXunit
{
private readonly ITestOutputHelper? _output;
public UseXunit(ITestOutputHelperAccessor outputHelperAccessor)
{
if (outputHelperAccessor == null)
{
throw new ArgumentNullException(nameof(outputHelperAccessor));
}
_output = outputHelperAccessor.Output;
}
[Fact]
public void UsabilityTest()
{
Assert.True(true, "使用xUnit测试框架");
_output?.WriteLine("使用 xUnit 框架输出信息测试!");
}
}
}