public void ShoudForwardMessage() { var handler = new TestEventHandler(); EventFns.Forward(handler, "Hello"); Assert.IsTrue(handler.StringHandled, "Message should have been handled"); }
public void ShouldForwardPolymorphicMessage() { var handler = new TestEventHandler(); var message = new TestMessage(); EventFns.Forward(handler, message); Assert.IsTrue(handler.IMessageHandled, "Message should have been handled"); }