« LeSS - Tests unitaires » : différence entre les versions
De Wiki Agile
| Ligne 201 : | Ligne 201 : | ||
Then The Text Should Not Be Wrapped | Then The Text Should Not Be Wrapped | ||
Given | Given / Étant donné que la longueur du texte pour le retour à la ligne est défini à 10 | ||
And | And / Et que le caractère '-' est utilisé comme connecteur entre deux mots | ||
When | When / Lorsque la longueur du texte est inférieure à 10 | ||
Then | Then / Alors le texte ne devrait pas être retourné à la ligne</pre> | ||
As you can see, “given-when-then” maps to “arrange-act-assert” pretty well. They both simply define a state transition of a Finite State Machine (FSM). You can find more on this in the [https://sites.google.com/site/unclebobconsultingllc/the-truth-about-bdd Uncle Bob’s article]. Some differences: | As you can see, “given-when-then” maps to “arrange-act-assert” pretty well. They both simply define a state transition of a Finite State Machine (FSM). You can find more on this in the [https://sites.google.com/site/unclebobconsultingllc/the-truth-about-bdd Uncle Bob’s article]. Some differences: | ||