Let's say I'm starting to do a game with TDD. Is this a good first test?
[TestMethod]
public void Can_Start_And_End_Game()
{
Tetris tetris = new Tetris();
tetris.Start();
tetris.End();
}
It basically forces me to define 3 things: the Tetris
class and its Start()
and End()
methods, but besides that it's pretty useless. It might have its interest immediately as with them I can define that class and those methods, but later it probably won't serve any kind of purpose. Its only purpose would maybe show that it must be possible to start a game and end it without getting an exception in the middle.
What are your thoughts on that?