public void PrivateRuleProviderMethod() { RuleEngineException exception = Assert.Throws <RuleEngineException>( () => new PrivateRulesProvider()); Assert.AreEqual("Do not mark private methods as RuleProvider.", exception.Message); }
public void StaticRuleProviderMethod() { RuleEngineException exception = Assert.Throws <RuleEngineException>( () => new StaticRulesProvider()); Assert.AreEqual("Do not mark static methods as RuleProvider.", exception.Message); }