官术网_书友最值得收藏!

Test – X plays right after O

Finally, we can check whether X's turn comes after O played.


If the last turn was played by O, then the next turn should be played by X.

There's nothing to do to fulfill this test and, therefore, the test is useless and should be discarded. If you write this test, you'll discover that it is a false positive. It would pass without changing the implementation; try it out. Write this test and if it is successful without writing any implementation code, discard it.

The source code can be found in the 02-next-player branch of the tdd-java-ch03-tic-tac-toe Git repository at https://bitbucket.org/vfarcic/tdd-java-ch03-tic-tac-toe/branch/02-next-player.

主站蜘蛛池模板: 始兴县| 河北省| 榆社县| 东乌| 景东| 勐海县| 兰西县| 龙井市| 耒阳市| 临颍县| 泰安市| 吴旗县| 福建省| 河曲县| 南乐县| 玉龙| 柳林县| 罗甸县| 浙江省| 扶沟县| 紫阳县| 天峻县| 新河县| 古交市| 绍兴县| 台山市| 石狮市| 文安县| 南康市| 保康县| 贵定县| 龙游县| 龙口市| 平利县| 广安市| 普安县| 江都市| 东乌珠穆沁旗| 海口市| 永丰县| 杭州市|