Example #1
0
        public void ShoudForwardMessage()
        {
            var handler = new TestEventHandler();

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

            EventFns.Forward(handler, message);
            Assert.IsTrue(handler.IMessageHandled, "Message should have been handled");
        }