Timeline for How should you TDD a Yahtzee game?
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 16, 2015 at 20:07 | comment | added | recursion.ninja | Should IsFullHouse really return true if pairNum == trioNum ? | |
| Feb 6, 2013 at 2:09 | comment | added | Mark Hurd | AnyFullHouse is a "helper" method in a test case. If they are general enough helper methods get tested too! | |
| Feb 4, 2013 at 12:44 | comment | added | tallseth | AnyFullHouse() is a method in a test case. Do you typically TDD your test cases? No. Also, it is much simpler to create a random exemplar of a full house (or any other roll) than it is to test for it's existence. Of course, if your test has a bug, it could be replicated in the production code. That's true of every test though. | |
| Feb 4, 2013 at 8:43 | comment | added | waxwing | Does this not create a Chicken-or-the-egg dilemma? When you implement AnyFullHouse (using TDD as well) wouldn't you need IsFullHouse to verify its correctness? Specifically, if AnyFullHouse has a bug, that bug could be replicated in IsFullHouse. | |
| Feb 3, 2013 at 23:20 | comment | added | Bringer128 | If you do this approach you will need to improve your log messages in your Assert.That statements. The developer needs to see which input caused the failure. | |
| Feb 3, 2013 at 20:10 | history | answered | tallseth | CC BY-SA 3.0 |