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
496 B
C#
24 lines
496 B
C#
using Xunit.Abstractions;
|
|
|
|
namespace NotebookStudy.Test
|
|
{
|
|
public class UseXunit
|
|
{
|
|
private ITestOutputHelper _testOutput;
|
|
public UseXunit(ITestOutputHelper testOutputHelper)
|
|
{
|
|
_testOutput = testOutputHelper;
|
|
}
|
|
|
|
[Fact]
|
|
public void Xunit_Test()
|
|
{
|
|
string message = "使用 xUnit 单元测试框架,进行单元测试";
|
|
|
|
_testOutput.WriteLine(message);
|
|
|
|
Assert.True(true, message);
|
|
|
|
}
|
|
}
|
|
} |