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(type => type == typeof(BusSettings)); rule.Matches(GetType()).ShouldBeFalse(); }