3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 510919 - Code completion does not show interface method when not using a local var 
/// </summary>
Bug 510919 - Code completion does not show interface method when not using a local var
Bug 510919 - Code completion does not show interface method when not using a local var
[Test]
		public void TestBug510919 ()
		{
			CompletionDataList provider = CreateProvider (
@"
public class Foo : IFoo 
{
	public void Bar () { }
}
public interface IFoo 
{
	void Bar ();
}
public class Program
{
	static IFoo GiveMeFoo () 
	{
		return new Foo ();
	}
	static void Main ()
	{
		$GiveMeFoo ().$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("Bar"), "method 'Bar' not found.");
		}
[ Test ] public void TestBug510919 ( ) { CompletionDataList provider = CreateProvider ( @"
public class Foo : IFoo 
{
	public void Bar () { }
}

public interface IFoo 
{
	void Bar ();
}

public class Program
{
	static IFoo GiveMeFoo () 
	{
		return new Foo ();
	}

	static void Main ()
	{
		$GiveMeFoo ().$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 510919 - Code completion does not show interface method when not using a local var
Bug 510919 - Code completion does not show interface method when not using a local var