public void BuildTest209()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIN, StringVarDef, EnumCaption.GetCaptionFor(TestDayOfWeek1), EnumCaption.GetCaptionFor(TestDayOfWeek2)),
         FunctionBuilder.Build(LangDef.funcIN, StringVarDef, EnumList.Where(x => true)));
 }
Esempio n. 2
0
 public void BuildBetweenTest31()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcBETWEEN, NumericVarDef, Decimal1, Decimal2),
         FunctionBuilder.BuildBetween(NumericVarDef, Decimal1, Decimal2));
 }
Esempio n. 3
0
 public void BuildBetweenTest40()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcBETWEEN, StringVarDef, String1, String2),
         FunctionBuilder.BuildBetween(StringVarDef, String1, String2));
 }
 public void BuildIsNullTest32()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIsNull, DateGenVarDef),
         FunctionBuilder.BuildIsNull <TestDataObject>(x => x.BirthDate));
 }
Esempio n. 5
0
 public void BuildBetweenTest20()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcBETWEEN, BoolVarDef, Bool1, Bool2),
         FunctionBuilder.BuildBetween(BoolVarDef, Bool1, Bool2));
 }
 public void BuildExistsTest04()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcExist, DetVarDef, Func3),
         FunctionBuilder.BuildExists(DetVarDef, Func3));
 }
 public void BuildIsNullTest22()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIsNull, StringVarDef),
         FunctionBuilder.BuildIsNull(StringVarDef));
 }
Esempio n. 8
0
 public void BuildLessTest57()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcL, StringGenVarDef, StringGenVarDef1),
         FunctionBuilder.BuildLess(StringGenVarDef, StringGenVarDef1));
 }
Esempio n. 9
0
 public void BuildLessTest75()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcL, StringGenVarDef, StringGenVarDef),
         FunctionBuilder.BuildLess <TestDataObject>(x => x.Name, x => x.Name));
 }
Esempio n. 10
0
 public void BuildGreaterTest73()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcG, DateGenVarDef, DateGenVarDef1),
         FunctionBuilder.BuildGreater <TestDataObject>(x => x.BirthDate, x => x.DeathDate));
 }
Esempio n. 11
0
 public void BuildGreaterTest74()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcG, StringGenVarDef, StringGenVarDef2),
         FunctionBuilder.BuildGreater <TestDataObject>(x => x.Name, x => x.Hierarchy.Name));
 }
Esempio n. 12
0
 public void BuildGreaterTest72()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcG, IntGenVarDef, IntGenVarDef1),
         FunctionBuilder.BuildGreater <TestDataObject>(x => x.Height, x => x.Weight));
 }
Esempio n. 13
0
 public void BuildGreaterTest57()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcG, StringGenVarDef, StringGenVarDef1),
         FunctionBuilder.BuildGreater(StringGenVarDef, StringGenVarDef1));
 }
Esempio n. 14
0
 public void BuildGreaterTest45()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcG, StringGenVarDef, String1),
         FunctionBuilder.BuildGreater <TestDataObject>(x => x.Name, String1));
 }
Esempio n. 15
0
 public void BuildSQLTest()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcSQL, "sql"),
         FunctionBuilder.BuildSQL("sql"));
 }
Esempio n. 16
0
 public void BuildLessTest43()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcL, IntGenVarDef, Int1),
         FunctionBuilder.BuildLess <TestDataObject>(x => x.Height, Int1));
 }
Esempio n. 17
0
 public void BuildNotTest()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcNOT, FuncTrue),
         FunctionBuilder.BuildNot(FuncTrue));
 }
Esempio n. 18
0
 public void BuildLessTest44()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcL, DateGenVarDef, DateTime1),
         FunctionBuilder.BuildLess <TestDataObject>(x => x.BirthDate, DateTime1));
 }
 public void BuildExistsTest13()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcExist, DetVarDef, Func3),
         FunctionBuilder.BuildExists(ConnectMasterProp, TestDataObjectDetail.Views.D, Func3));
 }
 public void BuildInTest510()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIN, PrimaryKeyVarDef, FuncSQL),
         FunctionBuilder.BuildIn(FuncSQL));
 }
 public void BuildIsNullTest31()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIsNull, IntGenVarDef),
         FunctionBuilder.BuildIsNull <TestDataObject>(x => x.Height));
 }
 public void BuildInTest511()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIN, GuidVarDef, FuncSQL),
         FunctionBuilder.BuildIn(GuidVarDef, FuncSQL));
 }
 public void BuildIsNullTest33()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIsNull, StringGenVarDef),
         FunctionBuilder.BuildIsNull <TestDataObject>(x => x.Name));
 }
 public void BuildInTest512()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIN, IntGenVarDef, FuncSQL),
         FunctionBuilder.BuildIn <TestDataObject>(x => x.Height, FuncSQL));
 }
Esempio n. 25
0
 public void BuildBetweenTest30()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcBETWEEN, NumericVarDef, Int1, Int2),
         FunctionBuilder.BuildBetween(NumericVarDef, Int1, Int2));
 }
Esempio n. 26
0
 public void BuildTrueTest()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, 1, 1),
         FunctionBuilder.BuildTrue());
 }
Esempio n. 27
0
 public void BuildBetweenTest39()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcBETWEEN, NumericVarDef, NullableInt1, NullableDecimal1),
         FunctionBuilder.BuildBetween(NumericVarDef, NullableInt1, NullableDecimal1));
 }
Esempio n. 28
0
 public void BuildFalseTest()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, 1, 0),
         FunctionBuilder.BuildFalse());
 }
Esempio n. 29
0
 public void BuildBetweenTest41()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcBETWEEN, StringVarDef, EnumCaption.GetCaptionFor(Enum1), EnumCaption.GetCaptionFor(Enum2)),
         FunctionBuilder.BuildBetween(StringVarDef, Enum1, Enum2));
 }
 public void BuildTest204()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, StringVarDef, EnumCaption.GetCaptionFor(TestDayOfWeek1)),
         FunctionBuilder.Build(LangDef.funcIN, StringVarDef, RepeatedEnumList.ToArray()));
 }