You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Review follow-ups of PR #282: share the Slot fixture clump, rename SlotRerollTests, tidy comments #285
Soft review findings from the Standards and Spec axes of PR #282 (refs #268, merge commit b654a11). Both axes found 0 hard findings: 58 tests moved unchanged (57 byte-identical, one with a comment edit), 89 DataRows and 116 cases preserved, every new file under 200 lines. A mutation that removed AddSlot(other) from both fixture constructors turned 32 of 184 Slot* tests red.
SlotPlannerFixture and SlotPageFixture repeat the same library clump (gameA, gameB, theme, holiday, current, other, replacement and the tags) and the helpers UseRandom, UseLibrary, AssertFilledSlots, Slots, Candidates, AddSlot, SetSlots. Only the stateless builders went to SlotTestData. Pull the shared clump out so a rule change is one edit.
AssertAddSlotRefused exists in both SlotRerollTests and SlotPlannerAddSlotTests (already so on base).
SlotRerollTests now holds the page dialog's create, fresh-roll, Add-slot and save-snapshot tests while the planner re-roll tests live in SlotPlannerTests; the name no longer says what the class holds. Consider a rename.
SlotRerollTests says "the page is now the only place that draws slots" while SlotPlannerPoolTests says "the planner is the only place". Make the two agree.
SlotPlannerFixture exposes mutable protected fields (games, activities, planner) that subclasses reassign; sibling fixtures use readonly.
Comment nits: broken wrap in the SlotPlannerFixture header ("The library is / two Games") and it mixes move history with the description; the SlotRerollTests header omits the save-snapshot test RepeatedGameIdsAreToleratedFirstGameWins; SlotPageFixture has a using ...Web.Services yet fully qualifies EventService (also on base).
Activity