Skip to content

Review follow-ups of PR #282: share the Slot fixture clump, rename SlotRerollTests, tidy comments #285

Backlog

Description

@mwg-bender

This was generated by AI during triage.

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.

  1. 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.
  2. AssertAddSlotRefused exists in both SlotRerollTests and SlotPlannerAddSlotTests (already so on base).
  3. 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.
  4. 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.
  5. SlotPlannerFixture exposes mutable protected fields (games, activities, planner) that subclasses reassign; sibling fixtures use readonly.
  6. 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

  1. added this to the 0.8.0 milestone on Nov 28, 2026
  2. added
    ready-for-agent
    on Nov 28, 2026
  3. modified the milestones: 0.8.0, 0.7.0 on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions