3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 457003 - code completion shows variables out of scope
/// </summary>
Bug 457003 - code completion shows variables out of scope
Bug 457003 - code completion shows variables out of scope
[Test]
		public void TestBug457003 ()
		{
			CompletionDataList provider = CreateProvider (
@"
class A
{
	public void Test ()
	{
		if (true) {
			A st = null;
		}
		if (true) {
			int i = 0;
			$st.$
		}
	}
}
");
			if (provider != null)
				Assert.IsTrue (provider.Count == 0, "variable 'st' found, but shouldn't.");
		}
[ Test ] public void TestBug457003 ( ) { CompletionDataList provider = CreateProvider ( @"
class A
{
	public void Test ()
	{
		if (true) {
			A st = null;
		}
		
		if (true) {
			int i = 0;
			$st.$
		}
	}
}
" ) ; if ( provider != null ) Assert . IsTrue ( provider . Count == 0 , " " ) ; }
Bug 457003 - code completion shows variables out of scope
Bug 457003 - code completion shows variables out of scope