public void Should_replace_ExtractBody_with_lambda_body_provided_as_static_method_returnvalue() { Expression <Func <MyObject, bool> > expression = o => o.MyProperty == MyObject.GetExpressionFromStaticMethod().ExtractBody(o); var visitedExpression = ExpressionBodyExtractingVisitor.Rewrite(expression); ValidateVisitedExpressions(expression, visitedExpression); }