3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 2295 - [New Resolver] 'new' completion doesn't select the correct class name 
/// </summary>
Bug 2295 - [New Resolver] 'new' completion doesn't select the correct class name
Bug 2295 - [ New Resolver ] ' new ' completion doesn ' t select the correct class name
[Test]
		public void TestBug2295 ()
		{
			CombinedProviderTest (
@"
class A
{
	public void Test()
	{
		A a;
		$a = new $
	}
}
", provider => {
				Assert.IsNotNull (provider.Find ("A"), "class 'A' not found.");
				Assert.AreEqual ("A", provider.DefaultCompletionString);
			});
		}
[ Test ] public void TestBug2295 ( ) { CombinedProviderTest ( @"
class A
{
	public void Test()
	{
		A a;
		$a = new $
	}
}
" , provider => { Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; Assert . AreEqual ( " " , provider . DefaultCompletionString ) ; } ) ; }
Bug 2295 - [New Resolver] 'new' completion doesn't select the correct class name
Bug 2295 - [ New Resolver ] ' new ' completion doesn ' t select the correct class name