.NET Koans
Fix C# koans one file at a time until each one passes
Your first assignment is to make Assert.True(false) pass. The opening file, AboutAsserts, then has you compare 1 + 1 with 3 and replace a placeholder, which sets the rhythm for everything after it: read a small failing xUnit test, work out what C# actually does, and edit until the runner moves on.
Free · No login · Terminal · Beginner

About .NET Koans
Thirty topic files follow in a fixed sequence. Booleans, strings, floats, decimals, null and constants come first, then arrays, enumerations, dictionaries, classes, inheritance, methods and control flow. Exceptions, generic containers, delegates and lambdas sit in the middle, and the back half reaches files and directories, LINQ, bitwise operators, destructuring, pattern matching, tuples, globalization and IDisposable. The last file, on threads, borrows its definitions from C# in a Nutshell.
This repository grew out of Cory Foy's earlier DotNetKoans, which also had VB.NET, and the whole idea traces back to Jim Weirich's Ruby Koans. Unlike Coding Learn or GrindFest, there is no game wrapper: the tests are the only feedback, and they run on your own machine.
Questions about .NET Koans
What does the FILL_ME_IN marker mean in a koan?
In what order do the koans run, and what happens when one fails?
Made this game? Claim it →

Tips and discussion
No tips yet.
Sign in to share a tip.