Testing
This is a collection of resources related to unit testing in C#.
Unit testing is the testing that a developer does as they build their code: checking small units of code, one at a time, to make sure they work. For example, testing each method after it is built.
Unit Testing
- Unit Testing and Coding: Why Testable Code Matters
- Walkthrough: Create and run unit tests for managed code
- A Beginner’s Guide To Testing Your Code
Defensive Coding
While defensive coding is a big topic on its own, part of it is being prepared for anything that can go wrong: which means we should also be testing what happens when e.g. user provides bad data, when the a file to be read does not exist, etc.