Exemple #1
0
        public void CreateModifierMarkup()
        {
            var output         = _outputFormatter.CreateModifierMarkup("attribute1 attribute2", "keyword1 keyword2");
            var expectedOutput = new XElement(
                "Modifiers",
                new XElement("Text", "["),
                new XElement("Type", "attribute1"),
                new XElement("Text", "]"),
                new XElement("Text", "["),
                new XElement("Type", "attribute2"),
                new XElement("Text", "]"),
                new XElement("Keyword", "keyword1"),
                new XElement("Keyword", "keyword2"));

            Assert.That(output.ToString(), Is.EqualTo(expectedOutput.ToString()));
        }