3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 466692 - Missing completion for return/break keywords after yield
/// </summary>
Bug 466692 - Missing completion for return/break keywords after yield
Bug 466692 - Missing completion for return / break keywords after yield
[Test]
		public void TestBug466692 ()
		{
			CompletionDataList provider = CreateProvider (
@"
public class TestMe 
{
	public int Test ()
	{
		$yield $
	}
}");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.AreEqual (2, provider.Count);
			Assert.IsNotNull (provider.Find ("break"), "keyword 'break' not found");
			Assert.IsNotNull (provider.Find ("return"), "keyword 'return' not found");
		}
[ Test ] public void TestBug466692 ( ) { CompletionDataList provider = CreateProvider ( @"
public class TestMe 
{
	public int Test ()
	{
		$yield $
	}
}" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . AreEqual ( 2 , provider . Count ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 466692 - Missing completion for return/break keywords after yield
Bug 466692 - Missing completion for return / break keywords after yield