3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 441671 - Finalisers show up in code completion
/// </summary>
Bug 441671 - Finalisers show up in code completion
Bug 441671 - Finalisers show up in code completion
[Test]
		public void TestBug441671 ()
		{
			CompletionDataList provider = CreateProvider (
@"class TestClass
{
	public TestClass (int i)
	{
	}
	public void TestMethod ()
	{
	}
	public ~TestClass ()
	{
	}
}
class AClass
{
	void AMethod ()
	{
		TestClass c;
		$c.$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.AreEqual (5, provider.Count);
			CodeCompletionBugTests.CheckObjectMembers (provider); 
			Assert.IsNull (provider.Find (".dtor"), "destructor found - but shouldn't.");
			Assert.IsNotNull (provider.Find ("TestMethod"), "method 'TestMethod' not found.");
		}
[ Test ] public void TestBug441671 ( ) { CompletionDataList provider = CreateProvider ( @"class TestClass
{
	public TestClass (int i)
	{
	}
	public void TestMethod ()
	{
	}
	public ~TestClass ()
	{
	}
}

class AClass
{
	void AMethod ()
	{
		TestClass c;
		$c.$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . AreEqual ( 5 , provider . Count ) ; CodeCompletionBugTests . CheckObjectMembers ( provider ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 441671 - Finalisers show up in code completion
Bug 441671 - Finalisers show up in code completion
// 4 from System.Object