Example #1
0
        public async Task EventChannel_SentMessage_IsReceivedByReiceiver()
        {
            var eventChannel = new EventChannel <object>();
            var expected     = new object();

            var task = eventChannel.SendAsync(expected);

            Assert.Equal(expected, await eventChannel.ReceiveAsync());
        }