Example #1
0
 public void BuildEqualsTest27()
 {
     // TODO: Enum
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, StringVarDef, 1),
         FunctionBuilder.BuildEquals(PropertyName, 1));
 }
 public void BuildNotEqualsTest38()
 {
     // TODO: Enum
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcNEQ, NumericVarDef, 1),
         FunctionBuilder.BuildNotEquals(PropertyName, LangDef.NumericType, 1));
 }
 public void BuildTest127()
 {
     // R U CRAZY?!
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIN, NumericVarDef, Int1, Decimal1),
         FunctionBuilder.Build(LangDef.funcIN, NumericVarDef, Int1, Decimal1));
 }
Example #4
0
 public void BuildAndTest25()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcAND, FuncTrue, FuncFalse),
         FunctionBuilder.BuildAnd(new List <Function> {
         FuncTrue, FuncFalse
     }));
 }
 public void BuildNotEqualsTest14()
 {
     Assert.Equal(
         LangDef.GetFunction(
             LangDef.funcNEQ,
             PrimaryKeyVarDef,
             PKHelper.GetKeyByObject(KeyGuid1)),
         FunctionBuilder.BuildNotEquals(KeyGuid1));
 }
Example #6
0
 public void BuildEqualsTest40()
 {
     Assert.Equal(
         LangDef.GetFunction(
             LangDef.funcEQ,
             StringVarDef,
             EnumCaption.GetCaptionFor(tDayOfWeek.Day0)),
         FunctionBuilder.BuildEquals(StringVarDef, tDayOfWeek.Day0));
 }
Example #7
0
 public void BuildEqualsTest24()
 {
     Assert.Equal(
         LangDef.GetFunction(
             LangDef.funcEQ,
             GuidVarDef,
             PKHelper.GetKeyByObject(Guid1)),
         FunctionBuilder.BuildEquals(PropertyName, Guid1));
 }
Example #8
0
 public void BuildEqualsTest15()
 {
     Assert.Equal(
         LangDef.GetFunction(
             LangDef.funcEQ,
             PrimaryKeyVarDef,
             PKHelper.GetKeyByObject(TestDataObject1)),
         FunctionBuilder.BuildEquals(TestDataObject1));
 }
 public void BuildNotEqualsTest26()
 {
     Assert.Equal(
         LangDef.GetFunction(
             LangDef.funcNEQ,
             GuidVarDef,
             PKHelper.GetKeyByObject(TestDataObject1)),
         FunctionBuilder.BuildNotEquals(PropertyName, TestDataObject1));
 }
Example #10
0
 public void BuildEqualsTest12()
 {
     Assert.Equal(
         LangDef.GetFunction(
             LangDef.funcEQ,
             PrimaryKeyVarDef,
             PKHelper.GetKeyByObject(GuidString)),
         FunctionBuilder.BuildEquals(GuidString));
 }
Example #11
0
 public void BuildEqualsTest69()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, StringGenVarDef, String1),
         FunctionBuilder.BuildEquals <IName>(x => x.Name, String1));
 }
Example #12
0
 public void BuildEqualsTest68()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, StringGenVarDef, StringGenVarDef),
         FunctionBuilder.BuildEquals <TestDataObject>(x => x.Name, x => x.Name));
 }
Example #13
0
 public void BuildEqualsTest66()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, DateGenVarDef, DateGenVarDef1),
         FunctionBuilder.BuildEquals <TestDataObject>(x => x.BirthDate, x => x.DeathDate));
 }
Example #14
0
 public void BuildEqualsTest54()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, GuidGenVarDef, PKHelper.GetKeyByObject(KeyGuid1)),
         FunctionBuilder.BuildEquals <TestDataObject>(x => x.Hierarchy, KeyGuid1));
 }
Example #15
0
 public void BuildEqualsTest53()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIsNull, GuidGenVarDef),
         FunctionBuilder.BuildEquals <TestDataObject>(x => x.Hierarchy, NullTestDataObject));
 }
Example #16
0
 public void BuildBetweenTest342()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcBETWEEN, StringVarDef, String1, EnumCaption.GetCaptionFor(Enum1)),
         FunctionBuilder.BuildBetween(StringVarDef.Caption, String1, Enum1));
 }
Example #17
0
 public void BuildEqualsTest82()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, IntGenVarDef, FuncSQL),
         FunctionBuilder.BuildEquals <TestDataObject>(x => x.Height, FuncSQL));
 }
Example #18
0
 public void BuildEqualsTest43()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIsNull, GuidVarDef),
         FunctionBuilder.BuildEquals(GuidVarDef, NullObject));
 }
Example #19
0
 public void BuildBetweenTest11()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcBETWEEN, GuidVarDef, KeyGuid1, KeyGuid2),
         FunctionBuilder.BuildBetween(GuidVarDef, KeyGuid1, KeyGuid2));
 }
Example #20
0
 public void BuildEqualsTest39()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, NumericVarDef, 1),
         FunctionBuilder.BuildEquals(PropertyName, LangDef.NumericType, 1));
 }
Example #21
0
 public void BuildEqualsTest33()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIsNull, GuidVarDef),
         FunctionBuilder.BuildEquals(PropertyName, LangDef.GuidType, ""));
 }
Example #22
0
 public void BuildBetweenTest340()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcBETWEEN, StringVarDef, String1, String2),
         FunctionBuilder.BuildBetween(StringVarDef.Caption, String1, String2));
 }
Example #23
0
 public void BuildEqualsTest80()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, PrimaryKeyVarDef, FuncSQL),
         FunctionBuilder.BuildEquals(FuncSQL));
 }
Example #24
0
 public void BuildEqualsTest22()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcIsNull, GuidVarDef),
         FunctionBuilder.BuildEquals(PropertyName, NullObject));
 }
Example #25
0
 public void BuildEqualsTest81()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, GuidVarDef, FuncSQL),
         FunctionBuilder.BuildEquals(GuidVarDef, FuncSQL));
 }
Example #26
0
 public void BuildBetweenTest14()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcBETWEEN, GuidVarDef, PKHelper.GetKeyByObject(Guid1), PKHelper.GetKeyByObject(TestDataObject1)),
         FunctionBuilder.BuildBetween(GuidVarDef, Guid1, TestDataObject1));
 }
Example #27
0
 public void BuildEqualsTest47()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, GuidVarDef, PKHelper.GetKeyByObject(TestDataObject1)),
         FunctionBuilder.BuildEquals(GuidVarDef, TestDataObject1));
 }
Example #28
0
 public void BuildAndTest15()
 {
     Assert.Equal(LangDef.GetFunction(LangDef.funcAND, FuncTrue, FuncFalse), FunctionBuilder.BuildAnd(FuncTrue, FuncFalse));
 }
Example #29
0
 public void BuildEqualsTest49()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcEQ, NumericVarDef, 1),
         FunctionBuilder.BuildEquals(NumericVarDef, 1));
 }
Example #30
0
 public void BuildBetweenTest352()
 {
     Assert.Equal(
         LangDef.GetFunction(LangDef.funcBETWEEN, DateVarDef, NullableDateTime2, DateTime1),
         FunctionBuilder.BuildBetween(DateVarDef.Caption, NullableDateTime2, DateTime1));
 }