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

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.

主站蜘蛛池模板: 河源市| 盐源县| 赞皇县| 平昌县| 怀集县| 商水县| 谷城县| 芦溪县| 揭西县| 疏附县| 曲阳县| 岐山县| 彭山县| 宁陵县| 三亚市| 临朐县| 邯郸市| 安阳县| 南靖县| 新巴尔虎右旗| 凤山县| 肇东市| 兴国县| 奉节县| 格尔木市| 登封市| 五台县| 于都县| 和平区| 修文县| 石嘴山市| 岐山县| 秦安县| 徐水县| 佛山市| 宜川县| 乐陵市| 叙永县| 凌云县| 南召县| 镇沅|