3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 474199 - Code completion not working for a nested class
/// </summary>
Bug 474199 - Code completion not working for a nested class
Bug 474199 - Code completion not working for a nested class
[Test]
		public void TestBug474199B ()
		{
			var provider = ParameterCompletionTests.CreateProvider (
@"
public class InnerTest
{
	public class Inner
	{
		public Inner(string test)
		{
		}
	}
}
public class ExtInner : InnerTest
{
}
class Test
{
	public void TestMethod ()
	{
		$new ExtInner.Inner ($
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.AreEqual (1, provider.Count, "There should be one overload");
			Assert.AreEqual (1, provider.GetParameterCount (0), "Parameter 'test' should exist");
		}
[ Test ] public void TestBug474199B ( ) { var provider = ParameterCompletionTests . CreateProvider ( @"
public class InnerTest
{
	public class Inner
	{
		public Inner(string test)
		{
		}
	}
}

public class ExtInner : InnerTest
{
}

class Test
{
	public void TestMethod ()
	{
		$new ExtInner.Inner ($
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . AreEqual ( 1 , provider . Count , " " ) ; Assert . AreEqual ( 1 , provider . GetParameterCount ( 0 ) , " " ) ; }
Bug 474199 - Code completion not working for a nested class
Bug 474199 - Code completion not working for a nested class