예제 #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());
        }