public void PublishCompositionChangedEvent__CorrectlyPublished()
        {
            var correctlyPublished = false;

            TestInstance.CompositionChangedEvent += (sender, args) =>
                                                    correctlyPublished = sender == TestInstance && args == NonTerminalDescriptor;

            TestInstance.PublishCompositionChangedEvent(NonTerminalDescriptor);

            Assert.IsTrue(correctlyPublished);
        }
        public void PublishCompositionChangedEvent_NoSubscribers_NoError()
        {
            var caught = false;

            try
            {
                TestInstance.PublishCompositionChangedEvent(NonTerminalDescriptor);
            }
            catch
            {
                caught = true;
            }

            Assert.IsFalse(caught);
        }