Example #1
0
        public void TestEmpty()
        {
            var json   = JObject.Parse("{ }");
            var result = DogeONConvert.ToDogeONString(json);

            Assert.AreEqual("such wow", result);
        }
Example #2
0
        public void TestCase4()
        {
            var json   = JObject.Parse("{\"foo\": 34e3}");
            var result = DogeONConvert.ToDogeONString(json);

            Assert.AreEqual("such \"foo\" is 42very3 wow", result);
        }
Example #3
0
        public void TestCase2()
        {
            var json   = JObject.Parse("{\"foo\": {\"shiba\": \"inu\", \"doge\": true}}");
            var result = DogeONConvert.ToDogeONString(json);

            Assert.AreEqual("such \"foo\" is such \"shiba\" is \"inu\", \"doge\" is yes wow wow", result);
        }
Example #4
0
        public void TestCase3()
        {
            var json   = JObject.Parse("{\"foo\": [\"bar\", \"baz\", \"fizzbuzz\"]}");
            var result = DogeONConvert.ToDogeONString(json);

            Assert.AreEqual("such \"foo\" is so \"bar\" also \"baz\" also \"fizzbuzz\" many wow", result);
        }
Example #5
0
        public void TestCase1()
        {
            var json   = JObject.Parse("{\"foo\": \"bar\", \"doge\": \"shibe\"}");
            var result = DogeONConvert.ToDogeONString(json);

            Assert.AreEqual("such \"foo\" is \"bar\", \"doge\" is \"shibe\" wow", result);
        }