public void negative_match()
        {
            var rule = new LambdaRoutingRule(type => type == typeof(BusSettings));

            rule.Matches(GetType()).ShouldBeFalse();
        }
Пример #2
0
        public void positive_match()
        {
            var rule = new LambdaRoutingRule("is type", type => type == typeof(FakeAppSettings));

            ShouldBeBooleanExtensions.ShouldBeTrue(rule.Matches(typeof(FakeAppSettings)));
        }
        public void positive_match()
        {
            var rule = new LambdaRoutingRule(type => type == typeof(BusSettings));

            rule.Matches(typeof(BusSettings)).ShouldBeTrue();
        }
Пример #4
0
        public void negative_match()
        {
            var rule = new LambdaRoutingRule("test", type => type == typeof(FakeAppSettings));

            ShouldBeBooleanExtensions.ShouldBeFalse(rule.Matches(GetType()));
        }