3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 614045 - Types hidden by members are not formatted properly by ambience
/// </summary>
Bug 614045 - Types hidden by members are not formatted properly by ambience
Bug 614045 - Types hidden by members are not formatted properly by ambience
[Test]
		public void TestBug614045 ()
		{
			CompletionDataList provider = CreateProvider (
@"
namespace A
{
	enum Foo
	{
		One,
		Two,
		Three
	}
}
namespace B
{
	using A;
	public class Baz
	{
		public string Foo;
		void Test (Foo a)
		{
			$switch (a) {
			case $
		}
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNull (provider.Find ("Foo"), "enum 'Foo' found, but shouldn't.");
			Assert.IsNotNull (provider.Find ("A.Foo"), "enum 'A.Foo' not found.");
		}
[ Test ] public void TestBug614045 ( ) { CompletionDataList provider = CreateProvider ( @"
namespace A
{
	enum Foo
	{
		One,
		Two,
		Three
	}
}

namespace B
{
	using A;
	
	public class Baz
	{
		public string Foo;
		
		void Test (Foo a)
		{
			$switch (a) {
			case $
		}
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 614045 - Types hidden by members are not formatted properly by ambience
Bug 614045 - Types hidden by members are not formatted properly by ambience