Ejemplo n.º 1
0
        public void TestForPutAndIsKey()
        {
            NativeDictionary dict = new NativeDictionary();

            dict.put("home", 328910);

            Assert.AreEqual(true, dict.is_key("home"));

            Assert.AreEqual(false, dict.is_key("qwerty"));
        }
Ejemplo n.º 2
0
        public void TestForGet()
        {
            NativeDictionary dict = new NativeDictionary();

            dict.put("region", 903299);

            Assert.AreEqual(903299, dict.get("region"));

            Assert.AreEqual(-1, dict.get("home"));
        }