コード例 #1
0
        public void Should_be_able_to_use_typelist()
        {
            var specification = new TypeListMessageRouteSpecification(typeof(SimpleCommand));

            Assert.IsFalse(specification.IsSatisfiedBy(new OtherNamespaceCommand()));
            Assert.IsTrue(specification.IsSatisfiedBy(new SimpleCommand()));
        }
コード例 #2
0
        public void Should_be_able_to_use_typelist()
        {
            var specification = new TypeListMessageRouteSpecification(typeof (SimpleCommand).AssemblyQualifiedName);

            Assert.IsFalse(specification.IsSatisfiedBy(new OtherNamespaceCommand().GetType().FullName));
            Assert.IsTrue(specification.IsSatisfiedBy(new SimpleCommand().GetType().FullName));
        }