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.
xUnitStudy/xUnitStudy.WebApi.Test/UseOutputTest.cs

28 lines
573 B
C#

7 years ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
7 years ago
namespace xUnitStudy.WebApi.Test
{
7 years ago
public class UseOutputTest
7 years ago
{
private readonly ITestOutputHelper output;
7 years ago
public UseOutputTest(ITestOutputHelper output)
{
this.output = output;
}
[Fact]
public void Test()
{
Assert.True(true, "输出测试");
output.WriteLine("我是输出测试信息哦。");
}
7 years ago
}
}