示例#1
0
        public void Store_And_Publish_To_Another_Plugin_Assert_Was_Not_Called_Test()
        {
            // 1) arrange
            string anotherPluginName = "plugin";

            // 2) act
            eventConteiner.Store(pluginName, e);
            eventConteiner.Publish(anotherPluginName, publisher);

            // 3) assert
            publisher.AssertWasNotCalled(x => x.Publish(e));
        }
        public void Publish_Without_Plugins_Test()
        {
            // 1) arrange
            var e = new Event_Mock();

            // 2) act
            eventAggregator.GlobalPublish(e);

            // 3) assert
            eventPublisher.AssertWasNotCalled(x => x.Publish(e));
        }