public void TestToMethod_Instance()
 {
     FromExpression.ToMethod(( StringBuilder instance ) => instance.AppendLine());
     FromExpression.ToMethod((StringBuilder instance, String value) => instance.Append(value));
     FromExpression.ToMethod((StringBuilder instance, String value, object arg0) => instance.AppendFormat(value, arg0));
     FromExpression.ToMethod((StringBuilder instance, String value, object arg0, object arg1) => instance.AppendFormat(value, arg0, arg1));
     FromExpression.ToMethod(( TextWriter instance ) => instance.WriteLine());
     FromExpression.ToMethod((TextWriter instance, String value) => instance.WriteLine(value));
     FromExpression.ToMethod((TextWriter instance, String value, object arg0) => instance.WriteLine(value, arg0));
     FromExpression.ToMethod((TextWriter instance, String value, object arg0, String arg1) => instance.WriteLine(value, arg0, arg1));
 }
        public void TestToMethod_Static()
        {
            FromExpression.ToMethod(() => Guid.NewGuid());
            FromExpression.ToMethod(( String value ) => Int32.Parse(value));
            FromExpression.ToMethod((String value, NumberStyles style) => Int32.Parse(value, style));
            FromExpression.ToMethod((String value, NumberStyles style, IFormatProvider provider) => Int32.Parse(value, style, provider));
#if !NETFX_CORE
            FromExpression.ToMethod(() => Console.WriteLine());
            FromExpression.ToMethod(( String value ) => Console.WriteLine(value));
            FromExpression.ToMethod((String value, object arg0) => Console.WriteLine(value, arg0));
            FromExpression.ToMethod((String value, object arg0, String arg1) => Console.WriteLine(value, arg0, arg1));
#endif
        }
 public void TestToProperty_Instance()
 {
     FromExpression.ToProperty(( DateTime value ) => value.Ticks);
 }
 public void TestToProperty_Static()
 {
     FromExpression.ToProperty(() => DateTime.Now);
 }