Video: (part 5 - A Test DSL) Go Game Engine with TDD and Pair Programming
Monday, July 2, 2012 at 5:13PM In this session we start writing some tests that don’t fail first, and we don’t understand why. So we take some time to make a testing DSL, so that our tests will be more readable, and also easier to write. We also start to use NCrunch to see how it feels in real life.
As always, you can get all the previous parts here, and the source code is here.
Interesting note:
This video, along with the others, marks 6.5 hours of us pairing. So this is where we’d end up at the end of the first day working on this project if we were working in a real job, pairing full time. Not bad, in terms of amount of discoveries, knowledge shared, and understanding the problem domain, and starting with something that works.
Roy Osherove | Comments Off |
Unit Testing,
video 





Reader Comments (2)
Hi Roy,
why not implementig like board.ToString which returns a easy to read matrix for the current board? Could be something like this:
.B........
B.........
where B stands for a black stone, W for a white one. Dot or just a space is empty.
And if you implement a method to init your board with such data, it is even more visual and clear.
string boardData = @".B....
B.....";
Board board = MakeBoard(boardData);
Regards,
Steve
Hi again,
maybe i should watch the whole video before posting? :)
Regards
Steve