3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 460234 - Invalid options shown when typing 'override'
/// </summary>
Bug 460234 - Invalid options shown when typing 'override'
Bug 460234 - Invalid options shown when typing ' override '
[Test]
		public void TestBug460234 ()
		{
			CompletionDataList provider = CreateProvider (
@"
public class TestMe : System.Object
{
	$override $
	public override string ToString ()
	{
		return null; 
	}
}");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.AreEqual (2, provider.Count);
			Assert.IsNull (provider.Find ("Finalize"), "method 'Finalize' found, but shouldn't.");
			Assert.IsNotNull (provider.Find ("GetHashCode"), "method 'GetHashCode' not found.");
			Assert.IsNotNull (provider.Find ("Equals"), "method 'Equals' not found.");
		}
[ Test ] public void TestBug460234 ( ) { CompletionDataList provider = CreateProvider ( @"
public class TestMe : System.Object
{
	$override $

	public override string ToString ()
	{
		return null; 
	}
}" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . AreEqual ( 2 , provider . Count ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 460234 - Invalid options shown when typing 'override'
Bug 460234 - Invalid options shown when typing ' override '