public void negative_match() { var rule = new LambdaRoutingRule(type => type == typeof(BusSettings)); rule.Matches(GetType()).ShouldBeFalse(); }
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(); }
public void negative_match() { var rule = new LambdaRoutingRule("test", type => type == typeof(FakeAppSettings)); ShouldBeBooleanExtensions.ShouldBeFalse(rule.Matches(GetType())); }