Example #1
0
        public void CreateEventMarkup()
        {
            var output         = _outputFormatter.CreateEventMarkup("EventName", typeof(ChangedEventHandler));
            var expectedOutput = new XElement(
                "Signature",
                new XElement("Keyword", "event"),
                new XElement("Type", "MixinXRef.UnitTests.TestDomain.ChangedEventHandler", new XAttribute("languageType", "Type")),
                new XElement("Name", "EventName")
                );

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