Comment on page
TDD perusteet 102
NUnit perusteet 103 -harjoituksissa esiteltiin merkkijonolaskimen tehtävänanto. Tee harjoitus uudelleen mutta nyt pidättäydy mahdollisimman tarkasti TDD:n kolmessa säännössä. Säännöt alkuperäisessä muodossaan on lueteltu alla.
Uncle Bob describes TDD with three rules:
1.You are not allowed to write any production code unless it is to make a failing unit test pass. 2.You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures. 3.You are not allowed to write any more production code than is sufficient to pass the one failing unit test.
NUnit perusteet 103 -harjoituksissa esiteltiin keilapistelaskurin logiikka. Tee harjoitus uudelleen mutta käytä nyt aiemmin oppimaasi hyödyksi. Tunnet toivottavasti ongelman jo paremmin. Ratkaise ongelma noudattaen TDD:n kolmea sääntöä ja pyri ohjelmoimaan pienissä välivaiheissa.
Last modified 5yr ago