提交 b12ae48c 编写于 作者: Š Šimon Koníček

Adding VB tests

上级 51b5a8b0
......@@ -419,7 +419,7 @@ void M(bool a, bool b, bool c, bool d)
[Fact]
public async Task NotMergedWithNestedIfInsideWhileLoop()
{
// Do not consider the while loop to be a pure block (as might be suggested by some language-agnostic helpers).
// Do not consider the while loop to be a simple block (as might be suggested by some language-agnostic helpers).
await TestMissingInRegularAndScriptAsync(
@"class C
{
......@@ -437,7 +437,7 @@ void M(bool a, bool b)
[Fact]
public async Task NotMergedWithNestedIfInsideBlockInsideUsingStatement()
{
// Do not consider the using statement to be a pure block (as might be suggested by some language-agnostic helpers).
// Do not consider the using statement to be a simple block (as might be suggested by some language-agnostic helpers).
await TestMissingInRegularAndScriptAsync(
@"class C
{
......@@ -457,7 +457,7 @@ void M(bool a, bool b)
[Fact]
public async Task NotMergedWithNestedIfInsideUsingStatementInsideBlock()
{
// Do not consider the using statement to be a pure block (as might be suggested by some language-agnostic helpers).
// Do not consider the using statement to be a simple block (as might be suggested by some language-agnostic helpers).
await TestMissingInRegularAndScriptAsync(
@"class C
{
......@@ -1100,6 +1100,36 @@ void M(bool a, bool b)
}");
}
[Fact]
public async Task NotMergedWithExtraMatchingStatementsIfControlFlowContinues4()
{
await TestMissingInRegularAndScriptAsync(
@"class C
{
void M(bool a, bool b)
{
while (a != b)
{
if (a)
{
[||]if (b)
System.Console.WriteLine(a && b);
else
System.Console.WriteLine(a);
while (a != b)
continue;
}
else
System.Console.WriteLine(a);
while (a != b)
continue;
}
}
}");
}
[Fact]
public async Task MergedWithExtraMatchingStatementsIfControlFlowQuits1()
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册