Beispiel #1
0
        public void ToJObjectTest()
        {
            Dictionary <string, string> pairs = new Dictionary <string, string>();

            pairs.Add("path.to", "4");

            var actual = RunInfo.ToJObject(pairs);

            var expect = new JObject(
                new JProperty("path", new JObject(
                                  new JProperty("to", 4))));

            Assert.AreEqual(expect, actual);
        }