示例#1
0
        public void TestTokenizerWithSingleQuotes()
        {
            var root = OutputParser.Tokenize("a=b f='a a' c=d");

            Assert.AreEqual("b", root["a"]);
            Assert.AreEqual("d", root["c"]);
            Assert.AreEqual("a a", root["f"]);
        }
示例#2
0
        public void TestTokenizerWithQuotes()
        {
            var root = OutputParser.Tokenize("a=b c=d f=\"a a\"");

            Assert.AreEqual("b", root["a"]);
            Assert.AreEqual("d", root["c"]);
            Assert.AreEqual("a a", root["f"]);
        }
示例#3
0
        public void TestTokenizerTwoKeys()
        {
            var root = OutputParser.Tokenize(@"a=b c=d");

            Assert.AreEqual("b", root["a"]);
        }
示例#4
0
        public void TestTokenizerSimple()
        {
            var root = OutputParser.Tokenize(@"a=b");

            Assert.AreEqual("b", root["a"]);
        }