3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 592120 - Type resolver bug with this.Property[]
/// </summary>
Bug 592120 - Type resolver bug with this.Property[]
Bug 592120 - Type resolver bug with this . Property []
[Test]
		public void TestBug592120 ()
		{
			CompletionDataList provider = CreateProvider (
@"
interface IBar
{
	void Test ();
}
class Foo
{
	public IBar[] X { get; set; }
	public void Bar ()
	{
		var y = this.X;
		$y.$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNull (provider.Find ("Test"), "method 'Test' found, but shouldn't.");
		}
[ Test ] public void TestBug592120 ( ) { CompletionDataList provider = CreateProvider ( @"

interface IBar
{
	void Test ();
}

class Foo
{
	public IBar[] X { get; set; }

	public void Bar ()
	{
		var y = this.X;
		$y.$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; }
Bug 592120 - Type resolver bug with this.Property[]
Bug 592120 - Type resolver bug with this . Property []