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()); }
public void Test_0712_InWithIntValue_length_equal_200() { try{ KiiClause.InWithIntValue("100", new int[200]); }catch (Exception exception) { Assert.Fail("should not throw exception"); } }
public void Test_0714_InWithIntValue_null_value() { KiiClause.InWithIntValue("100", null); }
public void Test_0713_InWithIntValue_empty_key() { KiiClause.InWithIntValue("", new int[200]); }
public void Test_0713_InWithIntValue_null_key() { KiiClause.InWithIntValue(null, new int[200]); }
public void Test_0711_InWithIntValue_length_exceed_200() { KiiClause.InWithIntValue("100", new int[201]); }
public void Test_0203_In_key_null() { KiiClause.InWithIntValue(null, 1, 2, 3); }
public void Test_0202_In_int_0() { KiiClause.InWithIntValue("score"); }
public void Test_0201_In_int_1() { KiiClause c = KiiClause.InWithIntValue("score", 1); Assert.AreEqual("{\"type\":\"in\",\"field\":\"score\",\"values\":[1]}", c.ToJson().ToString()); }