public void Test_0005_intArrayValue()
        {
            KiiEvent ev = KiiAnalytics.NewEvent("testType");

            ev["selected"] = new int[] { 2, 5, 8 };

            JsonObject json = ev.ConvertToJsonObject("dev001");

            AssertAndRemoveTimes(json);

            Assert.AreEqual("{\"selected\":[2,5,8],\"_deviceID\":\"dev001\",\"_type\":\"testType\"}", json.ToString());
        }
        public void Test_0002_floatValue()
        {
            KiiEvent ev = KiiAnalytics.NewEvent("testType");

            ev["score"] = (float)1.34;

            JsonObject json = ev.ConvertToJsonObject("dev001");

            AssertAndRemoveTimes(json);

            Assert.AreEqual("{\"score\":1.34,\"_deviceID\":\"dev001\",\"_type\":\"testType\"}", json.ToString());
        }
        public void Test_0004_stringValue()
        {
            KiiEvent ev = KiiAnalytics.NewEvent("testType");

            ev["label"] = "KiiButton";

            JsonObject json = ev.ConvertToJsonObject("dev001");

            AssertAndRemoveTimes(json);

            Assert.AreEqual("{\"label\":\"KiiButton\",\"_deviceID\":\"dev001\",\"_type\":\"testType\"}", json.ToString());
        }
        public void Test_0001_longValue()
        {
            KiiEvent ev = KiiAnalytics.NewEvent("testType");

            ev["time"] = (long)12345678901234;

            JsonObject json = ev.ConvertToJsonObject("dev001");

            AssertAndRemoveTimes(json);

            Assert.AreEqual("{\"time\":12345678901234,\"_deviceID\":\"dev001\",\"_type\":\"testType\"}", json.ToString());
        }
        public void Test_0021_key_len1()
        {
            KiiEvent ev = KiiAnalytics.NewEvent("testType");

            ev["a"] = 1;

            JsonObject json = ev.ConvertToJsonObject("dev001");

            AssertAndRemoveTimes(json);

            Assert.AreEqual("{\"a\":1,\"_deviceID\":\"dev001\",\"_type\":\"testType\"}", json.ToString());
        }
        public void Test_0009_stringArrayValue()
        {
            KiiEvent ev = KiiAnalytics.NewEvent("testType");

            ev["selected"] = new string[] { "item1", "item3", "item6" };

            JsonObject json = ev.ConvertToJsonObject("dev001");

            AssertAndRemoveTimes(json);

            Assert.AreEqual("{\"selected\":[\"item1\",\"item3\",\"item6\"],\"_deviceID\":\"dev001\",\"_type\":\"testType\"}", json.ToString());
        }
        public void Test_0007_floatArrayValue()
        {
            KiiEvent ev = KiiAnalytics.NewEvent("testType");

            ev["selected"] = new float[] { (float)1.23, (float)3.57 };

            JsonObject json = ev.ConvertToJsonObject("dev001");

            AssertAndRemoveTimes(json);

            Assert.AreEqual("{\"selected\":[1.23,3.57],\"_deviceID\":\"dev001\",\"_type\":\"testType\"}", json.ToString());
        }
        public void Test_0006_longArrayValue()
        {
            KiiEvent ev = KiiAnalytics.NewEvent("testType");

            ev["selected"] = new long[] { 1234567890123, 987654321098765 };

            JsonObject json = ev.ConvertToJsonObject("dev001");

            AssertAndRemoveTimes(json);

            Assert.AreEqual("{\"selected\":[1234567890123,987654321098765],\"_deviceID\":\"dev001\",\"_type\":\"testType\"}", json.ToString());
        }