Example #1
0
 /// <summary>
 ///     Creates the rule.
 /// </summary>
 /// <param name="target"> </param>
 /// <returns> </returns>
 public override RulePolicy CreateRule(object target)
 {
     Rule = new TestRule(RuleName, FailMessage, (TestAction)target);
     return(Rule);
 }
Example #2
0
 /// <summary>
 ///     Creates the rule.
 /// </summary>
 /// <param name="target"> </param>
 /// <returns> </returns>
 public override RulePolicy CreateRule(object target)
 {
     Rule = new TestRule(RuleName, FailMessage, (TestAction) target);
     return Rule;
 }