3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 13746 - Not useful completion for async delegates 
/// </summary>
Bug 13746 - Not useful completion for async delegates
Bug 13746 - Not useful completion for async delegates
[Test]
		public void TestBug13746 ()
		{
			var provider = CreateProvider (
				@"using System;
using System.Threading.Tasks;
class Test
{
    public static void Main()
    {
        var c = new HttpClient ();
        $Task.Run (a$
        return;
    }
}
");
			Assert.IsNotNull (provider, "provider not found.");
			foreach (var p in provider.Data)
				Console.WriteLine(p.DisplayText);
			Assert.AreEqual(1, provider.Data.Count(cd => cd.DisplayText == "async delegate"));
			Assert.AreEqual(1, provider.Data.Count(cd => cd.DisplayText == "delegate()"));
			Assert.AreEqual(1, provider.Data.Count(cd => cd.DisplayText == "async delegate()"));
		}
[ Test ] public void TestBug13746 ( ) { var provider = CreateProvider ( @"using System;
using System.Threading.Tasks;

class Test
{
    public static void Main()
    {
        var c = new HttpClient ();
        $Task.Run (a$
        return;
    }
}
" ) ; Assert . IsNotNull ( provider , " " ) ; foreach ( var p in provider . Data ) Console . WriteLine ( p . DisplayText ) ; Assert . AreEqual ( 1 , provider . Data . Count ( cd => cd . DisplayText == " " ) ) ; Assert . AreEqual ( 1 , provider . Data . Count ( cd => cd . DisplayText == " " ) ) ; Assert . AreEqual ( 1 , provider . Data . Count ( cd => cd . DisplayText == " " ) ) ; }
Bug 13746 - Not useful completion for async delegates
Bug 13746 - Not useful completion for async delegates