3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/ParameterCompletionTests.cs
/// <summary>
/// Bug 9301 - Inaccessible indexer overload in completion 
/// </summary>
Bug 9301 - Inaccessible indexer overload in completion
Bug 9301 - Inaccessible indexer overload in completion
[Test]
		public void TestBug9301()
		{
			IParameterDataProvider provider = CreateProvider(
				@"using System;
public class A
{
	public virtual int this [int i, string s] {
		get {
			return 1;
		}
	}
}
public class B : A
{
	public new bool this [int i, string s2] {
		get {
			return true;
		}
	}
}
public class Test
{
	public static int Main ()
	{
		B p = new B ();
		$p[$
		return 0;
	}
}
");
			Assert.AreEqual (1, provider.Count);
		}
[ Test ] public void TestBug9301 ( ) { IParameterDataProvider provider = CreateProvider ( @"using System;

public class A
{
	public virtual int this [int i, string s] {
		get {
			return 1;
		}
	}
}

public class B : A
{
	public new bool this [int i, string s2] {
		get {
			return true;
		}
	}
}

public class Test
{
	public static int Main ()
	{
		B p = new B ();
		$p[$
		return 0;
	}
}
" ) ; Assert . AreEqual ( 1 , provider . Count ) ; }
Bug 9301 - Inaccessible indexer overload in completion
Bug 9301 - Inaccessible indexer overload in completion