# TDD perusteet 102

#### Tee merkkijonolaskin harjoitus TDD:tä käyttäen <a href="#tee-merkkijonolaskin-harjoitus-tddt-c3-a4-k-c3-a4ytt-c3-a4en" id="tee-merkkijonolaskin-harjoitus-tddt-c3-a4-k-c3-a4ytt-c3-a4en"></a>

[NUnit perusteet 103](vscode-resource:/Users/sovelluskontti/dev/ohjelmistokehityksen-menetelmat/nunit-perusteet-103.md) -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.

#### Tee keilapistelaskuri harjoitus TDD:tä käyttäen <a href="#tee-keilapistelaskuri-harjoitus-tddt-c3-a4-k-c3-a4ytt-c3-a4en" id="tee-keilapistelaskuri-harjoitus-tddt-c3-a4-k-c3-a4ytt-c3-a4en"></a>

[NUnit perusteet 103](vscode-resource:/Users/sovelluskontti/dev/ohjelmistokehityksen-menetelmat/nunit-perusteet-103.md) -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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.sovelluskontti.com/yksikkoetestaus/tdd-perusteet-102.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
