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 ()
		{
			CompletionDataList provider = CreateCtrlSpaceProvider (
@"using System;
using System.Collections.Generic;
public class Test
{
	public void SomeMethod ()
	{
		var foo = new Dictionary<string,Test> ();
		foreach (var bar in foo.Values) {
			$bar.$
		}
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("SomeMethod"), "method 'SomeMethod' not found.");
		}
[ Test ] public void TestBug678340 ( ) { CompletionDataList provider = CreateCtrlSpaceProvider ( @"using System;
using System.Collections.Generic;

public class Test
{
	public void SomeMethod ()
	{
		var foo = new Dictionary<string,Test> ();
		foreach (var bar in foo.Values) {
			$bar.$
		}
	}
}
" ) ; 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 ;