3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 487218 - var does not work with arrays
/// </summary>
Bug 487218 - var does not work with arrays
Bug 487218 - var does not work with arrays
[Test]
		public void TestBug487218 ()
		{
			CompletionDataList provider = CreateProvider (
@"
public class Test
{
	public void Method ()
	{
		var v = new Test[] { new Test () };
		$v[0].$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("Method"), "method 'Method' not found");
		}
[ Test ] public void TestBug487218 ( ) { CompletionDataList provider = CreateProvider ( @"
public class Test
{
	public void Method ()
	{
		var v = new Test[] { new Test () };
		$v[0].$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 487218 - var does not work with arrays
Bug 487218 - var does not work with arrays