Beispiel #1
0
        public void CreateMethodMarkup()
        {
            var output         = _outputFormatter.CreateMethodMarkup("MethodName", typeof(string), new ParameterInfo[0]);
            var expectedOutput = new XElement(
                "Signature",
                new XElement("Type", "System.String", new XAttribute("languageType", "Keyword")),
                new XElement("Name", "MethodName")
                );

            _outputFormatter.AddParameterMarkup(new ParameterInfo[0], expectedOutput);

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