Namespace Serenity.Achievements.Tests.Services
Classes
AchievementConditionIndexTests
Behavioral tests for AchievementConditionIndex: which authored signal-name forms resolve to which achievements, what happens to a tree that throws while being indexed, and whether indexing the same definitions twice agrees with itself.
AchievementEvaluatorRestorationTests
The evaluator is restored from the local cache as soon as it is hydrated, not when the whole load — storefront handshake included — returns. A storefront whose session arrives through a callback keeps that load open for seconds, and an evaluator still paused in that window evaluates nothing and reports it as misuse.
AchievementEvaluatorTests
Behavioral tests for AchievementEvaluator: what a dispatched signal is allowed to evaluate, what a tick is allowed to evaluate, how few writes an evaluation produces, and what happens to a tree once its achievement is unlocked.