3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeIssues/ConvertToLambdaExpressionIssueTests.cs
/// <summary>
/// Bug 14840 - Incorrect "can be converted to expression" suggestion
/// </summary>
Bug 14840 - Incorrect "can be converted to expression" suggestion
Bug 14840 - Incorrect " can be converted to expression " suggestion
[Test]
		public void TestBug14840 ()
		{
			TestWrongContext<ConvertToLambdaExpressionIssue>(@"using System;
using System.Collections.Generic;
class C
{
	void Foo (Action<int> a) {}
	void Foo (Func<int,int> a) {}
	void Test ()
	{
		int t = 0;
		Foo (c => { t = c; });
	}
}");
		}
[ Test ] public void TestBug14840 ( ) { TestWrongContext < ConvertToLambdaExpressionIssue > ( @"using System;
using System.Collections.Generic;

class C
{
	void Foo (Action<int> a) {}
	void Foo (Func<int,int> a) {}

	void Test ()
	{
		int t = 0;
		Foo (c => { t = c; });
	}
}" ) ; }
Bug 14840 - Incorrect "can be converted to expression" suggestion
Bug 14840 - Incorrect " can be converted to expression " suggestion