6. HOW?
• We will start from scratch, no previous knowledge
of unit testing is needed
• Baby steps. We have no hurry
• Pair programming
• We don’t want to write the “perfect code” at once
• Actually, we shouldn’t!
7. PAIR PROGRAMMING
• One driver, one observer
• Driver has the keyboard
• Observer keeps track of the bigger picture
• Driver and observer talk out loud their ideas
• No comments from the audience during the red phase
• OK to ask for help if you’re stuck, though
• When the time slot is over, the driver goes back to the
audience, the observer becomes the driver, and a new
observer comes from the audience
10. OUR FIRST PROBLEM: MONEY WRITER
• We want to long-write money values in Portuguese
• So, 24.50 would be printed as “Vinte e quatro reais e
cinquenta centavos”
• Let’s use C#, Nunit and ReSharper
• Git to record the process of code design