public void transforms_tags_3()
        {
            const string data = "<component id='room objs'>You also see <pushBold/>a musk hog<popBold/>.</component>";
            const string expected = "You also see <pushBold/>a musk hog<popBold/>.";

            theParser = new NewGameParser(Enumerable.Empty<ITagTransformer>());

            var result = theParser.Parse(Chunk.For(data));

            Assert.AreEqual(expected, result.Tags.OfType<ComponentTag>().Single().Value);
        }
        public void transforms_tags()
        {
            const string data = "<component id='room exits'>Obvious paths: <d>northeast</d>, <d>south</d>, <d>northwest</d>.<compass></compass></component>";
            const string expected = "Obvious paths: northeast, south, northwest.";

            theParser = new NewGameParser(new ITagTransformer[]{ new ComponentTagTransformer() });

            var result = theParser.Parse(Chunk.For(data));

            Assert.AreEqual(expected, result.Tags.OfType<ComponentTag>().Single().Value);
        }
        public void transforms_tags_2()
        {
            const string data = "<streamWindow id='room' title='Room' subtitle=\" - [Grassland Road, Farmlands]\" location='center' target='drop' ifClosed='' resident='true'/>";
            const string expected = "[Grassland Road, Farmlands]";

            theParser = new NewGameParser(new ITagTransformer[]{ new StreamWindowTagTransformer() });

            var result = theParser.Parse(Chunk.For(data));

            Assert.AreEqual(expected, result.Tags.OfType<ComponentTag>().Single().Value);
        }
 public void SetUp()
 {
     theParser = new NewGameParser(new ITagTransformer[]{ new ComponentTagTransformer() });
 }