3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 350862 - Autocomplete bug with enums
/// </summary>
Bug 350862 - Autocomplete bug with enums
Bug 350862 - Autocomplete bug with enums
[Test]
		public void TestBug350862 ()
		{
			CompletionDataList provider = CreateProvider (
@"
public enum MyEnum {
	A,
	B,
	C
}
public class Test
{
	MyEnum item;
	public void Method (MyEnum val)
	{
		$item = $
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("val"), "parameter 'val' not found");
		}
[ Test ] public void TestBug350862 ( ) { CompletionDataList provider = CreateProvider ( @"
public enum MyEnum {
	A,
	B,
	C
}

public class Test
{
	MyEnum item;
	public void Method (MyEnum val)
	{
		$item = $
	}
}

" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 350862 - Autocomplete bug with enums
Bug 350862 - Autocomplete bug with enums