Jayrock.Json.TestJsonObject.InitWithExtraValues C# (CSharp) Method

InitWithExtraValues() private method

private InitWithExtraValues ( ) : void
return void
        public void InitWithExtraValues()
        {
            JsonObject o = new JsonObject(new string[] { "one", "two" }, new object[] { 1, 2, 3, 4 });
            Assert.AreEqual(2, o.Count);
            Assert.AreEqual(1, o["one"]);
            IList two = (IList) o["two"];
            Assert.AreEqual(3, two.Count, "Count of values under 'two'.");
            Assert.AreEqual(2, two[0]);
            Assert.AreEqual(3, two[1]);
            Assert.AreEqual(4, two[2]);
        }
TestJsonObject