public void mediator_is_created_if_guard_allows_it() { mediatorMap.Map(typeof(SupportView)).ToMediator(typeof(ExampleMediatorWatcher)).WithGuards(typeof(OnlyIfViewHasChildrenGuard)); SupportView view = new SupportView(); view.AddChild(new SupportView()); mediatorMap.Mediate(view); List<string> expectedNotifications = new List<string>{"ExampleMediatorWatcher"}; Assert.That (expectedNotifications, Is.EqualTo (mediatorWatcher.Notifications).AsCollection); }