3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 471937 - Code completion of 'new' showing invorrect entries 
/// </summary>
Bug 471937 - Code completion of 'new' showing invorrect entries
Bug 471937 - Code completion of ' new ' showing invorrect entries
[Test]
		public void TestBug471937()
		{
			CompletionDataList provider = CreateCtrlSpaceProvider(
@"
class B
{
}
class A
{
	public void Test()
	{
		int i = 5;
		i += 5;
		$A a = new $
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("A"), "class 'A' not found.");
			Assert.AreEqual ("A", provider.DefaultCompletionString);
		}
[ Test ] public void TestBug471937 ( ) { CompletionDataList provider = CreateCtrlSpaceProvider ( @"
class B
{
}

class A
{
	public void Test()
	{
		int i = 5;
		i += 5;
		$A a = new $
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; Assert . AreEqual ( " " , provider . DefaultCompletionString ) ; }
Bug 471937 - Code completion of 'new' showing invorrect entries
Bug 471937 - Code completion of ' new ' showing invorrect entries
//			Assert.IsNull (provider.Find ("B"), "class 'B' found, but shouldn'tj.");