3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 436705 - code completion for constructors does not handle class name collisions properly
/// </summary>
Bug 436705 - code completion for constructors does not handle class name collisions properly
Bug 436705 - code completion for constructors does not handle class name collisions properly
[Test]
		public void TestBug436705 ()
		{
			CompletionDataList provider = CreateProvider (
@"namespace System.Drawing {
	public class Point
	{
	}
}
public class Point
{
}
class C {
        public void Method ()
        {
                $System.Drawing.Point p = new $
        }
}");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.AreEqual ("System.Drawing.Point", provider.DefaultCompletionString, "Completion string is incorrect");
		}
[ Test ] public void TestBug436705 ( ) { CompletionDataList provider = CreateProvider ( @"namespace System.Drawing {
	public class Point
	{
	}
}

public class Point
{
}

class C {

        public void Method ()
        {
                $System.Drawing.Point p = new $
        }
}" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . AreEqual ( " " , provider . DefaultCompletionString , " " ) ; }
Bug 436705 - code completion for constructors does not handle class name collisions properly
Bug 436705 - code completion for constructors does not handle class name collisions properly