1 / 10

TDD GUI Using MVP and the pair programming game

What We're Going to Do. Pair ProgrammingTest Driven DevelopmentModel-View-Presenter. Pair Programming. Yes, we really do thisNo, we're not joking. Test Driven Development (TDD). Create a failing testMake it passRe-factor for clarity and to remove duplication. Model-View-Presenter (MVP). MVC and MVP are similar and usually exchanged colloquiallyBoth provide separation of view and controlIn MVC, a view is bound to a controller interfaceIn MVP, the presenter is bound to a view interface.

kory
Download Presentation

TDD GUI Using MVP and the pair programming game

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    1. TDD GUI Using MVP (and the pair programming game) Peter Provost peter.provost@microsoft.com http://www.peterprovost.org/

    2. What We’re Going to Do Pair Programming Test Driven Development Model-View-Presenter

    3. Pair Programming Yes, we really do this No, we’re not joking

    4. Test Driven Development (TDD) Create a failing test Make it pass Re-factor for clarity and to remove duplication

    5. Model-View-Presenter (MVP) MVC and MVP are similar and usually exchanged colloquially Both provide separation of view and control In MVC, a view is bound to a controller interface In MVP, the presenter is bound to a view interface

    6. The Story

    7. Requirements Windows Forms user control Rooted to a folder in the file system User can choose the folder for the root Shows all folders/files from the root down Does not show hidden folders/files Uses icons provided by our graphic designer For performance reasons, it shouldn’t load the whole tree at once User can specify a filter criteria for the files.

    8. Possible Tests Starts rooted on C:\ Settable root Verify root is valid User expanding a directory loads children Node text for root node is full path Node text for child node is relative name only Hidden files/folders not shown Folders and files have different icons

    9. Time to Code!

    10. What’s Next? The Humble Dialog Box http://objectmentor.com/resources/articles/TheHumbleDialogBox.pdf The Pair Programming Game http://www.peterprovost.org/archive/2005/08/29/7377.aspx Test Driven Development Community http://www.testdriven.com/ Test Driven .NET (Visual Studio test runner) http://weblogs.asp.net/nunitaddin

    11. Shameless Plug patterns & practices is hiring! See one of us after the talk or e-mail Darrell Snow – dsnow@microsoft.com Please fill out evals at: http://eval.pacwest.ms/

More Related