3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 633767 - Wrong intellisense for simple lambda
/// </summary>
Bug 633767 - Wrong intellisense for simple lambda
Bug 633767 - Wrong intellisense for simple lambda
[Test]
		public void TestBug633767 ()
		{
			CompletionDataList provider = CreateCtrlSpaceProvider (
@"using System;
public class E
{
	public int Foo { get; set; }
}
public class C
{
	delegate void D<T> (T t);
	static T M<T> (T t, D<T> a)
	{
		return t;
	}
	static void MethodArg (object o)
	{
	}
	public static int Main ()
	{
		D<object> action = l => Console.WriteLine (l);
		var b = M (new E (), action);
		$b.$
	}
}");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNull (provider.Find ("Foo"), "property 'Foo' found, but shouldn't.");
		}
[ Test ] public void TestBug633767 ( ) { CompletionDataList provider = CreateCtrlSpaceProvider ( @"using System;

public class E
{
	public int Foo { get; set; }
}

public class C
{
	delegate void D<T> (T t);
	
	static T M<T> (T t, D<T> a)
	{
		return t;
	}

	static void MethodArg (object o)
	{
	}

	public static int Main ()
	{
		D<object> action = l => Console.WriteLine (l);
		var b = M (new E (), action);
		$b.$
	}
}" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; }
Bug 633767 - Wrong intellisense for simple lambda
Bug 633767 - Wrong intellisense for simple lambda