3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 224 - Code completion cannot handle lambdas properly. 
/// </summary>
Bug 224 - Code completion cannot handle lambdas properly.
Bug 224 - Code completion cannot handle lambdas properly .
[Test]
		public void TestBug224 ()
		{
			CombinedProviderTest (
@"
using System;
public sealed class CrashEventArgs : EventArgs
{
	public int ArgsNum { get; set; }
	public CrashEventArgs ()
	{
	}
}
interface ICrashMonitor
{
	event EventHandler<CrashEventArgs> CrashDetected;
	void StartMonitoring ();
	void StopMonitoring ();
}
namespace ConsoleProject
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			ICrashMonitor mon;
			$mon.CrashDetected += (sender, e) => e.$
		}
	}
}
", provider => Assert.IsNotNull(provider.Find("ArgsNum"), "property 'ArgsNum' not found."));
		}
[ Test ] public void TestBug224 ( ) { CombinedProviderTest ( @"
using System;

public sealed class CrashEventArgs : EventArgs
{
	public int ArgsNum { get; set; }

	public CrashEventArgs ()
	{
		
	}
}

interface ICrashMonitor
{
	event EventHandler<CrashEventArgs> CrashDetected;

	void StartMonitoring ();

	void StopMonitoring ();
}

namespace ConsoleProject
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			ICrashMonitor mon;
			$mon.CrashDetected += (sender, e) => e.$
		}
	}
}
" , provider => Assert . IsNotNull ( provider . Find ( " " ) , " " ) ) ; }
Bug 224 - Code completion cannot handle lambdas properly.
Bug 224 - Code completion cannot handle lambdas properly .