Add unit tests for GameEngine command handling
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- game-dev, testing-qa
Research direction
Start by reading the GameEngine command handling and the existing tests for CommandParser, ConditionEvaluator, NarratorService, SaveManager, and WorldValidator. Create GameEngineTests.cs using mock IOutputWriter/IInputReader, cover the listed go, take, use, talk, and save/load scenarios, and confirm the GameEngine has coverage for each case.
Written by the indexing model from the issue text.
Description
The test suite covers CommandParser, ConditionEvaluator, NarratorService, SaveManager, and WorldValidator but GameEngine itself has zero test coverage. Create GameEngineTests.cs with mock IOutputWriter/IInputReader. Test each command handler: go (locked exit), take (non-portable), use (puzzle solve), talk (givesItem), save/load round-trip.
- Dominant language
- C#
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from csharpfritz/MyFirstTextGame
-
enhancement game-content squad:romanoff
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
enhancement game-content squad:romanoff
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
squad:barton testing
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
architecture enhancement squad:fury
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
engine enhancement squad:banner
Difficulty 3/5 1-2 days Newbie friendliness 58/100
All issues in csharpfritz/MyFirstTextGame
Similar issues
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cake-build/cake#5024 ·
-
Frontend status/draft TechnicalDebt
Difficulty 2/5 1-2 days Newbie friendliness 75/100
Altinn/altinn-auth#4143 ·
-
.NET Flaky Test Testing Tests
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
getsentry/sentry-dotnet#5617 · 1 comment ·
-
:watch: Not Triaged dotnet-fsharp/svc
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Client customer-reported needs-team-attention question Service Attention WebPubSub
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Azure/azure-sdk-for-net#63292 · 3 comments · 1 reaction ·