3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 2061 - Typing 'new' in a method all does not offer valid completion
/// </summary>
Bug 2061 - Typing 'new' in a method all does not offer valid completion
Bug 2061 - Typing ' new ' in a method all does not offer valid completion
[Test]
		public void TestBug2061 ()
		{
			CombinedProviderTest (
@"
class A
{
	void CallTest(A a)
	{
	}
	public void Test()
	{
		$CallTest(new $
	}
}
", provider => {
				Assert.IsNotNull (provider.Find ("A"), "class 'A' not found.");
				Assert.AreEqual ("A", provider.DefaultCompletionString);
			});
		}
[ Test ] public void TestBug2061 ( ) { CombinedProviderTest ( @"
class A
{
	void CallTest(A a)
	{
	}
	public void Test()
	{
		$CallTest(new $
	}
}
" , provider => { Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; Assert . AreEqual ( " " , provider . DefaultCompletionString ) ; } ) ; }
Bug 2061 - Typing 'new' in a method all does not offer valid completion
Bug 2061 - Typing ' new ' in a method all does not offer valid completion