3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 4017 - code completion in foreach does not work for local variables declared in the same block
/// </summary>
Bug 4017 - code completion in foreach does not work for local variables declared in the same block
Bug 4017 - code completion in foreach does not work for local variables declared in the same block
[Test]
		public void TestBug4017()
		{
			var provider = CreateProvider (
@"
class TestClass
{
    void Foo()
    {
        string[] args = null;
        $foreach(string arg in a$
    }
}
");
			Assert.IsNotNull (provider.Find ("args"), "'args' not found.");
		}
[ Test ] public void TestBug4017 ( ) { var provider = CreateProvider ( @"
class TestClass
{
    void Foo()
    {
        string[] args = null;
        $foreach(string arg in a$
    }
}
" ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 4017 - code completion in foreach does not work for local variables declared in the same block
Bug 4017 - code completion in foreach does not work for local variables declared in the same block