In this blog, I will demonstrate how to do Test-Driven-Development step by step when solving the Game Of Life. In short, doing TDD means we write test before writing code. In this example, I will use C# and Visual Studio for IDE.
To solve the Game Of Life, I want to have the following test. I always run test to have the failing result first before altering implementation,
Add cells to a universe, and get all of them
public void UniverseGetAllLivingCells()