3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 2109 - [Regression] Incorrect autocompletion when declaring an enum 
/// </summary>
Bug 2109 - [Regression] Incorrect autocompletion when declaring an enum
Bug 2109 - [ Regression ] Incorrect autocompletion when declaring an enum
[Test]
		public void TestBug2109B ()
		{
			CompletionDataList provider = CreateProvider (
@"namespace Foobar
{
    class MainClass
    {
        public enum Foo
        {
            Value1,
            Value2
        }
        public class Test
        {
            Foo Foo {
                get; set;
            }
            public static void Method (Foo foo)
            {
                $Foo.$
            }
        }
    }
}
");
			Assert.AreEqual (2, provider.Count); 
			Assert.IsNotNull (provider.Find ("Value1"), "field 'Value1' not found.");
			Assert.IsNotNull (provider.Find ("Value2"), "field 'Value2' not found.");
		}
[ Test ] public void TestBug2109B ( ) { CompletionDataList provider = CreateProvider ( @"namespace Foobar
{
    class MainClass
    {
        public enum Foo
        {
            Value1,
            Value2
        }

        public class Test
        {
            Foo Foo {
                get; set;
            }

            public static void Method (Foo foo)
            {
                $Foo.$
            }
        }
    }
}
" ) ; Assert . AreEqual ( 2 , provider . Count ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 2109 - [Regression] Incorrect autocompletion when declaring an enum
Bug 2109 - [ Regression ] Incorrect autocompletion when declaring an enum
// 2 fields