コード例 #1
0
 public void Now_something_a_bit_more_advanced()
 {
     var convert = new ExpressionConverter();
     var fieldService = new FieldService();
     convert.MapToArray("fieldService.GetField", "felter");
     Expression<Func<Field>> bodyExpr = () => fieldService.GetField(123);
     string javascript = convert.Convert(bodyExpr);
     File.WriteAllText(@"c:\temp\Now_something_a_bit_more_advanced.js", string.Format("var foo = {0};", javascript));
     Assert.IsNotNull(javascript);
 }