Test-Driven Development with Visual Studio 2010

2,400 views

Published on

deck from TechEd Africa on TDD

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,400
On SlideShare
0
From Embeds
0
Number of Embeds
538
Actions
Shares
0
Downloads
22
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • Both
  • I add this slide at the end of EVERY presentation.
  • Both
  • We value your feedback – please submit your session evaluation to stand in line to win a Leatherman Kick Multi Tool sponsored by Microsoft Virtual Academy
  • Test-Driven Development with Visual Studio 2010

    1. 1. 17-20 OCTOBER 2011<br />DURBAN ICC<br />
    2. 2. Test Driven Development<br />It’s All about Fluency <br />@LlewellynFalco & @LynnLangit<br />
    3. 3. Is Testing Faster? (Test After)<br />60 Minutes<br />Work (code)<br />X minutes<br />Non-Work(tests)<br /><<br />Code<br />60 Minutes<br />Code + Test<br />60 + X minutes<br />
    4. 4. Is Testing Faster? (Test 1st)<br />30 Minutes<br />Work (code)<br />X minutes<br />Non-Work(tests)<br /><<br />?<br />Code<br />60 Minutes<br />Test + Code<br />X + 30 minutes<br />
    5. 5. Today’s Kata: Triangle<br />A side has a distance<br />Side knows endpoints<br />3 points<br />3 sides<br />Perimeter<br />Get sides touching a point<br />Get side opposite a point<br />The angle of 2 sides touching a point<br />3 angles<br />Right Triangle<br />
    6. 6.
    7. 7. Parts of a Test<br />Do<br />Verify<br />
    8. 8. Demo<br />
    9. 9. Benefits of Unit Tests<br />Specification<br />Feedback<br />Regression<br />Granularity<br />
    10. 10. Intentional Code<br />// Create a Side from (0,0) to (5,0)<br />var side =new Side(0,0,5,0);<br />
    11. 11. Consume 1st<br />Write the objects & methods you wish existed<br />
    12. 12. Test Until Bored<br />Test the cases that bring you value <br />
    13. 13. Verification<br />Is it the right answer?<br />Change the Question<br />Ask an expert<br />
    14. 14. Completing the Circle<br />Your output should tell the story.<br />Objects should have ToStrings<br />Benefits<br />Specification<br />Feedback<br />Regression<br />Granularity<br />
    15. 15. Fake it Till You Make It<br />Buys some time<br />Allows for Triangulation <br />
    16. 16. Verifying Multiples<br />Verify Single:<br />Approvals.Approve(result);<br />Verify Many:<br />Approvals.Approve(results,"label");<br />
    17. 17. Multiple Cases<br />Approvals.Approve(cases, c =>TestWith(c));<br />
    18. 18. Maintaining Tests<br />Same Quality as Production Code<br />
    19. 19. Resources<br />Test Driven Development: By Example<br />Kent Beck<br />
    20. 20. Resources<br />www.ApprovalTests.com<br />
    21. 21. Resources<br />www.Develop.com<br />Intro To TDD Class (4 Day)<br />Legacy Code<br />SQL Server (Dev, BI)<br />SQL Azure<br />
    22. 22. TeachingKidsProgramming.org<br />Do a Recipe  Teach a Kid (Ages 10 ++)<br />Microsoft SmallBasic  Free Courseware (recipes)<br />
    23. 23. Contact Information<br />@LlewellynFalcohttp://LlewellynFalco.Blogspot.com<br />http://www.approvaltests.com<br />@LynnLangit<br />http://www.LynnLangit.com<br />
    24. 24. http://microsoftvirtualacademy.com<br />Submit your session evaluation for a chance to win! <br />Sponsored by MVA<br />
    25. 25. Creating<br />the future<br />together<br />

    ×