Class AchievementAuthoringRulesConditionMessageTests
The three shapes a real condition node reports as invalid through its own Validate(), surfaced by AchievementAuthoringRules as a Condition issue: a composite that combines too few children, a Not with nothing to invert, and a Score Threshold naming no metric.
Inherited Members
Namespace: Serenity.Achievements.Tests.Conditions
Assembly: Tests.dll
Syntax
public class AchievementAuthoringRulesConditionMessageTests
Remarks
Driven through the real Infrastructure nodes — AndCondition,
NotCondition and ScoreThresholdCondition — rather than a stubbed
message, because these are the shapes those nodes' own Validate methods actually
produce; the Business-side suite proves the pass-through mechanism once, generically, with a
fake.
Constructors
AchievementAuthoringRulesConditionMessageTests()
Declaration
public AchievementAuthoringRulesConditionMessageTests()
Methods
ACompositeWithOneChild_IsAConditionError()
Declaration
public void ACompositeWithOneChild_IsAConditionError()
ANotWithNothingToInvert_IsAConditionError()
Declaration
public void ANotWithNothingToInvert_IsAConditionError()
AScoreThresholdWithNoMetric_IsAConditionError()
Declaration
public void AScoreThresholdWithNoMetric_IsAConditionError()