3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 431797 - Code completion showing invalid options
/// </summary>
Bug 431797 - Code completion showing invalid options
Bug 431797 - Code completion showing invalid options
[Test]
		public void TestBug431797B ()
		{
			CompletionDataList provider = CreateProvider (
@"public class Test
{
	public delegate string [] AutoCompleteHandler (string text, int pos);
	public void Method ()
	{
		Test t = new Test ();
		$t.$
	}
}");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNull (provider.Find ("AutoCompleteHandler"), "should not contain 'AutoCompleteHandler' delegate");
		}
[ Test ] public void TestBug431797B ( ) { CompletionDataList provider = CreateProvider ( @"public class Test
{
	public delegate string [] AutoCompleteHandler (string text, int pos);
	public void Method ()
	{
		Test t = new Test ();
		$t.$
	}
}" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; }
Bug 431797 - Code completion showing invalid options
Bug 431797 - Code completion showing invalid options