Ejemplo n.º 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());
        }
Ejemplo n.º 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");
     }
 }
Ejemplo n.º 3
0
 public void Test_0714_InWithIntValue_null_value()
 {
     KiiClause.InWithIntValue("100", null);
 }
Ejemplo n.º 4
0
 public void Test_0713_InWithIntValue_empty_key()
 {
     KiiClause.InWithIntValue("", new int[200]);
 }
Ejemplo n.º 5
0
 public void Test_0713_InWithIntValue_null_key()
 {
     KiiClause.InWithIntValue(null, new int[200]);
 }
Ejemplo n.º 6
0
 public void Test_0711_InWithIntValue_length_exceed_200()
 {
     KiiClause.InWithIntValue("100", new int[201]);
 }
Ejemplo n.º 7
0
 public void Test_0203_In_key_null()
 {
     KiiClause.InWithIntValue(null, 1, 2, 3);
 }
Ejemplo n.º 8
0
 public void Test_0202_In_int_0()
 {
     KiiClause.InWithIntValue("score");
 }
Ejemplo n.º 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());
        }