3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 399695 - Code completion not working with an enum in a different namespace
/// </summary>
Bug 399695 - Code completion not working with an enum in a different namespace
Bug 399695 - Code completion not working with an enum in a different namespace
[Test]
		public void TestBug399695 ()
		{
			CompletionDataList provider = CreateProvider (
@"namespace Other { enum TheEnum { One, Two } }
namespace ThisOne { 
        public class Test {
                public Other.TheEnum TheEnum {
                        set { }
                }
                public void TestMethod () {
                        $TheEnum = $
                }
        }
}");
			Assert.IsNotNull (provider);
			Assert.IsNotNull (provider.Find ("Other.TheEnum"), "Other.TheEnum not found.");
		}
[ Test ] public void TestBug399695 ( ) { CompletionDataList provider = CreateProvider ( @"namespace Other { enum TheEnum { One, Two } }
namespace ThisOne { 
        public class Test {
                public Other.TheEnum TheEnum {
                        set { }
                }

                public void TestMethod () {
                        $TheEnum = $
                }
        }
}" ) ; Assert . IsNotNull ( provider ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 399695 - Code completion not working with an enum in a different namespace
Bug 399695 - Code completion not working with an enum in a different namespace