public void GetPriorityShouldReturn7ForAnAttributeWithEveryPropertySet(string stringVal, RuleOutcome outcome, Type type) { var sut = new FailureMessageStrategyAttribute { MemberName = stringVal, Outcome = outcome, ParentValidatedType = type, RuleInterface = type, RuleName = stringVal, RuleType = type, ValidatedType = type, }; Assert.That(() => sut.GetPriority(), Is.EqualTo(7)); }
public void GetPriorityShouldReturnZeroForAnEmptyAttribute() { var sut = new FailureMessageStrategyAttribute(); Assert.That(() => sut.GetPriority(), Is.Zero); }