示例#1
0
        public void Test_0204_In_int_array()
        {
            int[]     values = { 1, 2, 3 };
            KiiClause c      = KiiClause.InWithIntValue("score", values);

            Assert.AreEqual("{\"type\":\"in\",\"field\":\"score\",\"values\":[1,2,3]}", c.ToJson().ToString());
        }
示例#2
0
 public void Test_0712_InWithIntValue_length_equal_200()
 {
     try{
         KiiClause.InWithIntValue("100", new int[200]);
     }catch (Exception exception) {
         Assert.Fail("should not throw exception");
     }
 }
示例#3
0
 public void Test_0714_InWithIntValue_null_value()
 {
     KiiClause.InWithIntValue("100", null);
 }
示例#4
0
 public void Test_0713_InWithIntValue_empty_key()
 {
     KiiClause.InWithIntValue("", new int[200]);
 }
示例#5
0
 public void Test_0713_InWithIntValue_null_key()
 {
     KiiClause.InWithIntValue(null, new int[200]);
 }
示例#6
0
 public void Test_0711_InWithIntValue_length_exceed_200()
 {
     KiiClause.InWithIntValue("100", new int[201]);
 }
示例#7
0
 public void Test_0203_In_key_null()
 {
     KiiClause.InWithIntValue(null, 1, 2, 3);
 }
示例#8
0
 public void Test_0202_In_int_0()
 {
     KiiClause.InWithIntValue("score");
 }
示例#9
0
        public void Test_0201_In_int_1()
        {
            KiiClause c = KiiClause.InWithIntValue("score", 1);

            Assert.AreEqual("{\"type\":\"in\",\"field\":\"score\",\"values\":[1]}", c.ToJson().ToString());
        }