100 likes | 548 Views
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.
E N D
1. TDD GUI Using MVP(and the pair programming game) Peter Provost
peter.provost@microsoft.com
http://www.peterprovost.org/
2. What Were Going to Do Pair Programming
Test Driven Development
Model-View-Presenter
3. Pair Programming Yes, we really do this
No, were 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 shouldnt 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. Whats Next? The Humble Dialog Boxhttp://objectmentor.com/resources/articles/TheHumbleDialogBox.pdf
The Pair Programming Gamehttp://www.peterprovost.org/archive/2005/08/29/7377.aspx
Test Driven Development Communityhttp://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-mailDarrell Snow dsnow@microsoft.com
Please fill out evals at: http://eval.pacwest.ms/