3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 325509 - Inaccessible methods displayed in autocomplete
/// </summary>
Bug 325509 - Inaccessible methods displayed in autocomplete
Bug 325509 - Inaccessible methods displayed in autocomplete
[Test]
		public void TestBug325509 ()
		{
			CompletionDataList provider = CreateProvider (
@"class AClass
{
	public int A;
	public int B;
	protected int C;
	int D;
}
class Test
{
	public void TestMethod ()
	{
		AClass a;
		$a.$
	}
}");
			Assert.IsNotNull (provider, "provider not found.");
			CodeCompletionBugTests.CheckObjectMembers (provider); 
			Assert.IsNotNull (provider.Find ("A"), "field 'A' not found.");
			Assert.IsNotNull (provider.Find ("B"), "field 'B' not found.");
			Assert.IsNull (provider.Find ("C"), "field 'C' found, but shouldn't.");
			Assert.IsNull (provider.Find ("D"), "field 'D' found, but shouldn't.");
		}
[ Test ] public void TestBug325509 ( ) { CompletionDataList provider = CreateProvider ( @"class AClass
{
	public int A;
	public int B;
	
	protected int C;
	int D;
}

class Test
{
	public void TestMethod ()
	{
		AClass a;
		$a.$
	}
}" ) ; Assert . IsNotNull ( provider , " " ) ; CodeCompletionBugTests . CheckObjectMembers ( provider ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; }
Bug 325509 - Inaccessible methods displayed in autocomplete
Bug 325509 - Inaccessible methods displayed in autocomplete
// 4 from System.Object