public void IsSubscribed() { var bus = new DictionaryMessageBus(); var handler = new Mock<TestListener>(); TestUtils.AssertArgumentException(() => bus.IsSubscribed(null)); Assert.AreEqual(false, bus.IsSubscribed(handler.Object)); bus.Subscribe(handler.Object); Assert.AreEqual(true, bus.IsSubscribed(handler.Object)); }