3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 470954 - using System.Windows.Forms is not honored
/// </summary>
Bug 470954 - using System.Windows.Forms is not honored
Bug 470954 - using System . Windows . Forms is not honored
[Test]
		public void TestBug470954_Bis ()
		{
			CompletionDataList provider = CreateProvider (
@"
public class Control
{
	public string MouseButtons { get; set; }
}
public enum MouseButtons {
	Left, Right
}
public class SomeControl : Control
{
	public void Run ()
	{
		$int m = MouseButtons.$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNull (provider.Find ("Left"), "enum 'Left' found");
			Assert.IsNull (provider.Find ("Right"), "enum 'Right' found");
		}
[ Test ] public void TestBug470954_Bis ( ) { CompletionDataList provider = CreateProvider ( @"
public class Control
{
	public string MouseButtons { get; set; }
}

public enum MouseButtons {
	Left, Right
}

public class SomeControl : Control
{
	public void Run ()
	{
		$int m = MouseButtons.$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; }
Bug 470954 - using System.Windows.Forms is not honored
Bug 470954 - using System . Windows . Forms is not honored