3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 668453 - var completion infers var type too eagerly
/// </summary>
Bug 668453 - var completion infers var type too eagerly
Bug 668453 - var completion infers var type too eagerly
[Test]
		public void TestBug668453 ()
		{
			CompletionDataList provider = CreateCtrlSpaceProvider (
@"public class Test
{
	private void FooBar ()
	{
		$var str = new $
		FooBar ();
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNull (provider.Find ("FooBar"), "method 'FooBar' found.");
		}
[ Test ] public void TestBug668453 ( ) { CompletionDataList provider = CreateCtrlSpaceProvider ( @"public class Test
{
	private void FooBar ()
	{
		$var str = new $
		FooBar ();
	}
}

" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; }
Bug 668453 - var completion infers var type too eagerly
Bug 668453 - var completion infers var type too eagerly