Browse Source

Added failing completion test case.

pull/45/merge
Mike Krüger 12 years ago
parent
commit
6c4d206dcd
  1. 17
      ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs

17
ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs

@ -6083,5 +6083,22 @@ public class Test @@ -6083,5 +6083,22 @@ public class Test
Assert.IsTrue(provider == null || provider.Count == 0);
}
[Ignore("Parser bug")]
[Test]
public void TestBugWithLambdaParameter()
{
CombinedProviderTest(@"using System.Collections.Generic;
class C
{
public static void Main (string[] args)
{
List<string> list;
$list.Find(l => l.Name == l.Name ? l$
}
}", provider => {
Assert.IsNotNull(provider.Find("l"));
});
}
}
}

Loading…
Cancel
Save