Skip to content

Instantly share code, notes, and snippets.

@pedroreys
Created July 27, 2011 00:56
Show Gist options
  • Save pedroreys/1108450 to your computer and use it in GitHub Desktop.
Save pedroreys/1108450 to your computer and use it in GitHub Desktop.
Test right linq expression
[Test]
public void Should_evaluate_a_Right_function()
{
var rightExpression = ExpressionBuilder.Right();
Func<string,int,string> right = Expression.Lambda<Func<string,int,string>>(rightExpression).Compile();
right("Some String", 5).ShouldEqual("tring");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment