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

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.

主站蜘蛛池模板: 乐东| 贵港市| 滨海县| 上饶县| 衡水市| 阿图什市| 宣汉县| 威海市| 达尔| 宝应县| 丰顺县| 永昌县| 富裕县| 嘉黎县| 鄂伦春自治旗| 彰化市| 友谊县| 淅川县| 车致| 南陵县| 扶风县| 新竹市| 民勤县| 巴楚县| 塔城市| 天镇县| 涞源县| 紫云| 通州区| 台北县| 安宁市| 龙州县| 忻城县| 苍山县| 南召县| 杭锦旗| 昂仁县| 永康市| 同江市| 淳化县| 三明市|