Codex Game Manager Backend Test for Null Parameters
Plan a focused Game Manager backend scenario using xUnit and the project's fixture and assertion conventions.
中文Install in Codex
Open Game Manager's .NET tests in Codex with the function and existing AutoFixture or FluentAssertions conventions.
- Review `.agents/skills/backend-testing/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.agents/skills/backend-testing/` in your project and save the reviewed file as `.agents/skills/backend-testing/SKILL.md`.
- Start Codex from that project's root, then type `$backend-testing` and select the matching skill.
Example task
Draft a null-input test for this illustrative label formatter.
{"method":"NormalizeLabel","input":null,"expectedError":"ArgumentNullException","framework":"xUnit v3"}What to check
Use `xUnit v3` and assert `ArgumentNullException` after calling `NormalizeLabel`. Name the case for its null input.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should a test mock IUserContext directly?
The project's workflow configures the test principal through its existing fixture's SetUser extension.