• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Test-Driven Development with Visual Studio 2010
 

Test-Driven Development with Visual Studio 2010

on

  • 2,409 views

deck from TechEd Africa on TDD

deck from TechEd Africa on TDD

Statistics

Views

Total Views
2,409
Views on SlideShare
1,889
Embed Views
520

Actions

Likes
0
Downloads
19
Comments
0

6 Embeds 520

http://lynnlangit.wordpress.com 468
http://lynnlangit.com 31
http://paper.li 8
http://coderwall.com 8
http://a0.twimg.com 3
http://newsmixmedev.cloudapp.net 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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 Test-Driven Development with Visual Studio 2010 Presentation Transcript

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