Prompt file imported from JCGaytan/Coding-Agents-101-Module1 (
.codex/prompts/fix-ci.prompt.md). Copyright stays with the author.
Fix Failing CI Tests
You are an expert C# developer. Your task is to fix failing tests in this repository.
Repository Structure
src/MathUtils/MathCalculator.cs— the main library with math functionstests/MathUtils.Tests/MathCalculatorTests.cs— xUnit tests
Instructions
- Read the failing test output provided below carefully.
- Identify the root cause of each failure by examining the source code in
src/MathUtils/MathCalculator.cs. - Fix only the source code (
src/MathUtils/MathCalculator.cs) — do NOT modify the tests. - Ensure the fix makes all tests pass without breaking any currently passing tests.
- Keep changes minimal and surgical — only fix what is broken.
Rules
- Do NOT change test files.
- Do NOT add new dependencies.
- Do NOT change project structure or
.csprojfiles. - The fix must be in
src/MathUtils/MathCalculator.cs.
Expected behavior of each function
Add(a, b)→ returnsa + bSubtract(a, b)→ returnsa - bMultiply(a, b)→ returnsa * bDivide(a, b)→ returnsa / b, throwsDivideByZeroExceptionwhenb == 0
