提交 1f76e6dd 编写于 作者: J John Hamby

Add newly-required attribute to a test.

上级 a4d2eeea
...@@ -336,6 +336,7 @@ public static void Main(string[] args) ...@@ -336,6 +336,7 @@ public static void Main(string[] args)
TestMain(); TestMain();
} }
[Xunit.Fact]
static void TestMain() static void TestMain()
{ {
using (var memoryStream = new MemoryStream()) using (var memoryStream = new MemoryStream())
...@@ -387,7 +388,7 @@ static void TestMain() ...@@ -387,7 +388,7 @@ static void TestMain()
True True
"; ";
CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.UnsafeDebugExe, emitOptions: EmitOptions.Default.WithInstrument("Test.Flag"), expectedOutput: expectedOutput); CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource + XunitFactAttributeSource, options: TestOptions.UnsafeDebugExe, emitOptions: EmitOptions.Default.WithInstrument("Test.Flag"), expectedOutput: expectedOutput);
} }
[Fact] [Fact]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册