提交 c8119b47 编写于 作者: C Cyrus Najmabadi

Add tests.

上级 45733210
......@@ -153,6 +153,32 @@ void M(int a, int b, int c)
{
var x = a > 10 || b < 20 || c == 30;
}
}");
}
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsInvertLogical)]
public async Task TestMissingOnShortCircuitAnd()
{
await TestMissingAsync(
@"class C
{
void M(bool x, int a, int b)
{
var c = a > 10 [||]& b < 20;
}
}");
}
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsInvertLogical)]
public async Task TestMissingOnShortCircuitOr()
{
await TestMissingAsync(
@"class C
{
void M(bool x, int a, int b)
{
var c = a > 10 [||]| b < 20;
}
}");
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册