Exemplo n.º 1
0
        public void GetSimpleMessageTypesTest()
        {
            var l = MessageBus.GetMessageTypes(new MockSingleSubscriber()).ToList();

            Assert.That(l, Is.Not.Null);
            Assert.That(l.Count(), Is.EqualTo(1));
            Assert.That(l.ElementAt(0), Is.EqualTo(typeof(StatusMsg)));
        }
Exemplo n.º 2
0
        public void GetDualMessageTypesTest()
        {
            var l = MessageBus.GetMessageTypes(new MockDualSubscriber()).ToList();

            Assert.That(l, Is.Not.Null);
            Assert.That(l.Count(), Is.EqualTo(2));
            Assert.That(l.ElementAt(0), Is.EqualTo(typeof(StatusMsg)));
            Assert.That(l.Contains(typeof(ResetMsg)), Is.True);
            Assert.That(l.Contains(typeof(StatusMsg)), Is.True);
        }