public void Publish_OtherType() { var bus = new DictionaryMessageBus(); var handler = new Mock<TestListener>(); string value = "asdf"; bus.Subscribe(handler.Object); bus.Publish(new object()); handler.Verify(h => h.Listen1(value), Times.Never()); bus.Publish(value); handler.Verify(h => h.Listen1(value), Times.Once()); }