3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 610006 - Intellisense gives members of return type of functions even when that function isn't invoked
/// </summary>
Bug 610006 - Intellisense gives members of return type of functions even when that function isn't invoked
Bug 610006 - Intellisense gives members of return type of functions even when that function isn ' t invoked
[Test]
		public void TestBug610006 ()
		{
			CompletionDataList provider = CreateProvider (
@"
class MainClass
{
	public MainClass FooBar ()
	{
	}
	public void Test ()
	{
		$FooBar.$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNull (provider.Find ("FooBar"), "method 'FooBar' found, but shouldn't.");
		}
[ Test ] public void TestBug610006 ( ) { CompletionDataList provider = CreateProvider ( @"
class MainClass
{
	public MainClass FooBar ()
	{
	}
	
	public void Test ()
	{
		$FooBar.$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; }
Bug 610006 - Intellisense gives members of return type of functions even when that function isn't invoked
Bug 610006 - Intellisense gives members of return type of functions even when that function isn ' t invoked