3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 6237 - Code completion includes private code 
/// </summary>
Bug 6237 - Code completion includes private code
Bug 6237 - Code completion includes private code
[Test]
		public void TestBug6237 ()
		{
			CombinedProviderTest(
				@"
namespace bug
{
   public class TestClass
    {
        void Bar()
        {
            $System.Xml.Linq.XElement.$
        }
    }
}
", provider => {
				Assert.IsTrue (provider.Count > 0);
				foreach (var data in provider.Data) {
					Assert.IsFalse(data.DisplayText.StartsWith("<", StringComparison.Ordinal), "Data was:" + data.DisplayText);
				}
			});
		}
[ Test ] public void TestBug6237 ( ) { CombinedProviderTest ( @"
namespace bug
{
   public class TestClass
    {
        void Bar()
        {
            $System.Xml.Linq.XElement.$
        }
    }
}

" , provider => { Assert . IsTrue ( provider . Count > 0 ) ; foreach ( var data in provider . Data ) { Assert . IsFalse ( data . DisplayText . StartsWith ( " " , StringComparison . Ordinal ) , " " + data . DisplayText ) ; } } ) ; }
Bug 6237 - Code completion includes private code
Bug 6237 - Code completion includes private code
// it's likely to be mono specific.