提交 733ef4df 编写于 作者: T Tomáš Matoušek 提交者: GitHub

Merge pull request #14294 from tmat/Fix11716

Fix scripting test
......@@ -913,7 +913,7 @@ public class Lib2
> ", runner.Console.Out.ToString());
}
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/11716")]
[Fact]
[WorkItem(6580, "https://github.com/dotnet/roslyn/issues/6580")]
public void PreservingDeclarationsOnException()
{
......@@ -931,6 +931,8 @@ public void PreservingDeclarationsOnException()
Type ""#help"" for more information.
> int i = 100;
> int j = 20; throw new System.Exception(""Bang!""); int k = 3;
«Yellow»
(1,58): warning CS0162: Unreachable code detected
«Red»
Bang!
«Gray»
......@@ -939,7 +941,8 @@ public void PreservingDeclarationsOnException()
> ", runner.Console.Out.ToString());
AssertEx.AssertEqualToleratingWhitespaceDifferences(
@"Bang!",
@"(1,58): warning CS0162: Unreachable code detected
Bang!",
runner.Console.Error.ToString());
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册