public void Can_compile_lambda_with_property() { var thisType = GetType().GetTypeInfo(); var funcExpr = ExpressionInfo.Lambda( ExpressionInfo.Property(thisType.GetProperty(nameof(PropX)))); var func = ExpressionCompiler.TryCompile <Func <X> >(funcExpr); Assert.IsNotNull(func); var x = func(); Assert.IsInstanceOf <X>(x); }