3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 427649 - Code Completion: protected methods shown in code completion
/// </summary>
Bug 427649 - Code Completion: protected methods shown in code completion
Bug 427649 - Code Completion : protected methods shown in code completion
[Test]
		public void TestBug427649 ()
		{
			CompletionDataList provider = CreateProvider (
@"class BaseClass
{
	protected void ProtecedMember ()
	{
	}
}
class C : BaseClass
{
	public static void Main ()
	{
		BaseClass bc;
		$bc.$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.AreEqual (4, provider.Count);
			CodeCompletionBugTests.CheckObjectMembers (provider); 
		}
[ Test ] public void TestBug427649 ( ) { CompletionDataList provider = CreateProvider ( @"class BaseClass
{
	protected void ProtecedMember ()
	{
	}
}

class C : BaseClass
{
	public static void Main ()
	{
		BaseClass bc;
		$bc.$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . AreEqual ( 4 , provider . Count ) ; CodeCompletionBugTests . CheckObjectMembers ( provider ) ; }
Bug 427649 - Code Completion: protected methods shown in code completion
Bug 427649 - Code Completion : protected methods shown in code completion
// protected members should not be displayed in this case. // 4 from System.Object