提交 98308f9f 编写于 作者: C Cyrus Najmabadi

Add negative test.

上级 8a465912
......@@ -1067,6 +1067,38 @@ public static void ReproMethod(Goo goo)
await VerifyBuilderAsync(markup);
}
[WorkItem(28586, "https://github.com/dotnet/roslyn/issues/28586")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async Task WithNonDelegateExtensionAndInstanceMethod1()
{
var markup = @"
using System;
public sealed class Goo
{
public void Bar()
{
}
}
public static class GooExtensions
{
public static void Bar(this Goo goo, int val)
{
}
}
public static class Repro
{
public static void ReproMethod(Goo goo)
{
goo.Bar(a$$
}
}
";
await VerifyNotBuilderAsync(markup);
}
private async Task VerifyNotBuilderAsync(string markup)
{
await VerifyWorkerAsync(markup, isBuilder: false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册