public void AliasesTest01() { var model = new TestModel(); var property = typeof(TestModel).GetProperty("Concatenation"); var method = property.GetGetMethod(); var expression = method.Invoke(model, null) as Expression; var data = KnockoutExpressionData.CreateConstructorData(); data.Aliases[typeof(TestModel).FullName] = "this"; RunTest(expression, "'#'+this.A()+this.B()+this.C()", data); }
public void ConstructorCommonTest3() { RunTest((Expression <Func <TestModel, string> >)(model => model.A + model.B + "!"), "this.A() + this.B() + '!'", KnockoutExpressionData.CreateConstructorData()); }
public void ConstructorCommonTest1() { RunTest((Expression <Func <TestModel, string> >)(model => model.A), "this.A()", KnockoutExpressionData.CreateConstructorData()); }
public void ConstructorCommonTest3() { RunTest((Expression <Func <TestAttributesModel2, string> >)(model => model.A + model.B + "!"), "((this.a + this.b) + '!')", KnockoutExpressionData.CreateConstructorData()); }
public void ConstructorCommonTest2() { RunTest((Expression <Func <TestAttributesModel, string> >)(model => model.A + model.B), "(this.a() + this.B)", KnockoutExpressionData.CreateConstructorData()); }