Skip to main content

Practice ยท 1 of 3

Build the Runner

CHALLENGE
Difficulty: intermediate+25 XP

Implement TestSummary and Solution.Run โ€” the heart of a test framework: run every test, catch everything, keep going after failures, and record each failure as name: message. ``csharp public sealed class TestSummary { public int Passed; public int Failed; public List<string> Failures = new(); } static TestSummary Run(IEnumerable<(string Name, Action Body)> tests); ``

Back to lesson: Practice: Testing Practice: Runner, Assertions, Isolation