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())); }
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)); }