Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2014-08-26 12:38:32 +0400
committerMike Krüger <mkrueger@xamarin.com>2014-08-26 12:38:32 +0400
commiteb2150c354da69464f8693099086f67925bd8dc2 (patch)
tree7bcdc23a7341582f2f232785193c44d0313deacb /ICSharpCode.NRefactory.Tests
parent36e39f71995af914cdf75072a79d2cdcfb5349d3 (diff)
Fixed bug in ConvertToLambdaExpressionIssue.
Diffstat (limited to 'ICSharpCode.NRefactory.Tests')
-rw-r--r--ICSharpCode.NRefactory.Tests/CSharp/CodeIssues/ConvertToLambdaExpressionIssueTests.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/ICSharpCode.NRefactory.Tests/CSharp/CodeIssues/ConvertToLambdaExpressionIssueTests.cs b/ICSharpCode.NRefactory.Tests/CSharp/CodeIssues/ConvertToLambdaExpressionIssueTests.cs
index 1bd3708e..c43bb681 100644
--- a/ICSharpCode.NRefactory.Tests/CSharp/CodeIssues/ConvertToLambdaExpressionIssueTests.cs
+++ b/ICSharpCode.NRefactory.Tests/CSharp/CodeIssues/ConvertToLambdaExpressionIssueTests.cs
@@ -195,6 +195,24 @@ class TestClass
}
+ /// <summary>
+ /// Bug 22106 - Applying suggested fix causes error
+ /// </summary>
+ [Test]
+ public void TestBug22106 ()
+ {
+ TestWrongContext<ConvertToLambdaExpressionIssue> (@"
+class TestClass
+{
+ void TestMethod ()
+ {
+ alert.SetPositiveButton(""OK"", (sender, e) =>
+ {
+ return;
+ });
+ }
+}");
+ }
}
}