Quantcast
Channel: January 2010 – Michael Tsai
Viewing all articles
Browse latest Browse all 16

Mac and iPhone Applications With Unit Tests, Refactored

$
0
0

Dave Dribin refactors and improves Matt Gallagher’s sample test-driven Cocoa application:

The problem is that Matt’s code is testing the string formatting by asserting the web view’s HTML and text field’s strings. Separating the responsibility of formatting the strings from updating the UI not only improves the design, but makes testing much simpler.


Viewing all articles
Browse latest Browse all 16

Trending Articles