3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 545189 - C# resolver bug
/// </summary>
Bug 545189 - C# resolver bug
Bug 545189 - C# resolver bug
[Test]
		public void TestBug545189A ()
		{
			CompletionDataList provider = CreateProvider (
@"
public class A<T>
{
	public class B
	{
		public T field;
	}
}
public class Foo
{
	public void Bar ()
	{
		A<Foo>.B baz = new A<Foo>.B ();
		$baz.field.$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("Bar"), "method 'Bar' not found.");
		}
[ Test ] public void TestBug545189A ( ) { CompletionDataList provider = CreateProvider ( @"
public class A<T>
{
	public class B
	{
		public T field;
	}
}

public class Foo
{
	public void Bar ()
	{
		A<Foo>.B baz = new A<Foo>.B ();
		$baz.field.$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 545189 - C# resolver bug
Bug 545189 - C# resolver bug