diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2014-08-26 12:38:32 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2014-08-26 12:38:32 +0400 |
commit | eb2150c354da69464f8693099086f67925bd8dc2 (patch) | |
tree | 7bcdc23a7341582f2f232785193c44d0313deacb /ICSharpCode.NRefactory.Tests | |
parent | 36e39f71995af914cdf75072a79d2cdcfb5349d3 (diff) |
Fixed bug in ConvertToLambdaExpressionIssue.
Diffstat (limited to 'ICSharpCode.NRefactory.Tests')
-rw-r--r-- | ICSharpCode.NRefactory.Tests/CSharp/CodeIssues/ConvertToLambdaExpressionIssueTests.cs | 18 |
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; + }); + } +}"); + } } } |