3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 678340 - Cannot infer types from Dictionary&lt;K,V&gt;.Values
/// </summary>
Bug 678340 - Cannot infer types from Dictionary.Values
Bug 678340 - Cannot infer types from Dictionary . Values
[Test]
		public void TestBug678340_Case2 ()
		{
			CompletionDataList provider = CreateCtrlSpaceProvider (
@"public class Foo<T>
{
	public class TestFoo
	{
		public T Return ()
		{
		}
	}
	public TestFoo Bar = new TestFoo ();
}
public class Test
{
	public void SomeMethod ()
	{
		Foo<Test> foo = new Foo<Test> ();
		var f = foo.Bar;
		$f.Return ().$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("SomeMethod"), "method 'SomeMethod' not found.");
		}
[ Test ] public void TestBug678340_Case2 ( ) { CompletionDataList provider = CreateCtrlSpaceProvider ( @"public class Foo<T>
{
	public class TestFoo
	{
		public T Return ()
		{
			
		}
	}
	
	public TestFoo Bar = new TestFoo ();
}

public class Test
{
	public void SomeMethod ()
	{
		Foo<Test> foo = new Foo<Test> ();
		var f = foo.Bar;
		$f.Return ().$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 678340 - Cannot infer types from Dictionary<K,V>.Values
Bug 678340 - Cannot infer types from Dictionary<K V > . Values