3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 7207 - Missing inherited enum in completion
/// </summary>
Bug 7207 - Missing inherited enum in completion
Bug 7207 - Missing inherited enum in completion
[Test]
		public void TestBug7207()
		{
			CombinedProviderTest(
				@"using System;
class A
{
    protected enum MyEnum
    {
        A
    }
	class Hidden {}
}
class C : A
{
	class NotHidden {}
    public static void Main ()
    {
       $var a2 = M$
    }
}
", provider => {
				Assert.IsNotNull(provider.Find("MyEnum"));
				Assert.IsNotNull(provider.Find("NotHidden"));
				Assert.IsNull(provider.Find("Hidden"));
			});
		}
[ Test ] public void TestBug7207 ( ) { CombinedProviderTest ( @"using System;

class A
{
    protected enum MyEnum
    {
        A
    }
	
	class Hidden {}

}

class C : A
{
	class NotHidden {}
    public static void Main ()
    {
       $var a2 = M$
    }
}

" , provider => { Assert . IsNotNull ( provider . Find ( " " ) ) ; Assert . IsNotNull ( provider . Find ( " " ) ) ; Assert . IsNull ( provider . Find ( " " ) ) ; } ) ; }
Bug 7207 - Missing inherited enum in completion
Bug 7207 - Missing inherited enum in completion