示例#1
0
        public void ShouldParseSimple()
        {
            var blocks = parser.ParseNode("<x>Hello world!</x>".ToNode());

            blocks.Count.ShouldEqual(1);
            blocks[0].ShouldBeOfType <InlineText>();
            ((InlineText)blocks[0]).Text.ShouldEqual("Hello world!");
        }