3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 4961 - Code completion for enumerations in static classes doesn't work.
/// </summary>
Bug 4961 - Code completion for enumerations in static classes doesn't work.
Bug 4961 - Code completion for enumerations in static classes doesn ' t work .
[Test]
		public void TestBug4961()
		{
			CombinedProviderTest(
				@"using System;
using System.Collections.Generic;
namespace EnumerationProblem
{
	public enum Options
	{
		GiveCompletion,
		IwouldLoveIt,
	}
	static class Converter
	{
		private static Dictionary<Options, string> options = new Dictionary<Options, string> () 
		{
			${ Options.$
		};
	}
}
", provider => {
				Assert.IsNotNull(provider.Find("GiveCompletion"));
				Assert.IsNotNull(provider.Find("IwouldLoveIt"));
			});
		}
[ Test ] public void TestBug4961 ( ) { CombinedProviderTest ( @"using System;
using System.Collections.Generic;

namespace EnumerationProblem
{
	public enum Options
	{
		GiveCompletion,
		IwouldLoveIt,
	}
	
	static class Converter
	{
		private static Dictionary<Options, string> options = new Dictionary<Options, string> () 
		{
			${ Options.$
		};
	}
}

" , provider => { Assert . IsNotNull ( provider . Find ( " " ) ) ; Assert . IsNotNull ( provider . Find ( " " ) ) ; } ) ; }
Bug 4961 - Code completion for enumerations in static classes doesn't work.
Bug 4961 - Code completion for enumerations in static classes doesn ' t work .