3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 491019 - No intellisense for recursive generics
/// </summary>
Bug 491019 - No intellisense for recursive generics
Bug 491019 - No intellisense for recursive generics
[Test]
		public void TestBug491019 ()
		{
			CompletionDataList provider = CreateProvider (
@"
public abstract class NonGenericBase
{
	public abstract int this[int i] { get; }
}
public abstract class GenericBase<T> : NonGenericBase where T : GenericBase<T>
{
	T Instance { get { return default (T); } }
	public void Foo ()
	{
		$Instance.Instance.$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("Instance"), "property 'Instance' not found.");
			Assert.IsNull (provider.Find ("this"), "'this' found, but shouldn't.");
		}
[ Test ] public void TestBug491019 ( ) { CompletionDataList provider = CreateProvider ( @"
public abstract class NonGenericBase
{
	public abstract int this[int i] { get; }
}

public abstract class GenericBase<T> : NonGenericBase where T : GenericBase<T>
{
	T Instance { get { return default (T); } }

	public void Foo ()
	{
		$Instance.Instance.$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; }
Bug 491019 - No intellisense for recursive generics
Bug 491019 - No intellisense for recursive generics