diff --git a/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs b/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
index 3110dc0f00..ccf906a4b0 100644
--- a/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
+++ b/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
@@ -3771,6 +3771,51 @@ public partial class TestMe
Assert.IsNotNull (provider, "provider not found.");
Assert.IsNotNull (provider.Find ("MyMethod"), "method 'MyMethod' not found.");
Assert.IsNull (provider.Find ("Implemented"), "method 'Implemented' found.");
- }
+ }
+
+ ///
+ /// 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 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.");
+ });
+ }
}
}