Exemplo n.º 1
0
        public void EntityNode()
        {
            var result = grammar.EntityRef(Source("<"));

            Assert.AreEqual("lt", result.Value.Name);

            var result2 = grammar.EntityRef(Source("<world"));

            Assert.AreEqual("lt", result2.Value.Name);

            var result3 = grammar.EntityRef(Source("hello<world"));

            Assert.IsNull(result3);
        }