File size

File size

File size

File size

File size

45.4 MB

In this episode of The Full Stack, Jesse and Jon reboot their windows phone client project using Test Driven Development (TDD) and the Model View ViewModel (MVVM) pattern.

Previous episodes focused on getting different technologies such as Windows Phone, WCF, and OData, connected. With a better understanding of the technology and some working code, we decided it's time to restructure the project using some sustainable practices and patterns.

So, you would distribute your application through the Marketplace with the unit tests compiled in? Since space and bandwidth (and thus the size of your .xap) are issues on a platform like the phone, are there any options for separating the test harness code from the system under test?

Agree with whatsit, there are a number of things I see wrong with this. Unit tests built into your app instead of a separate library? Really? And making your own mock objects? There are about 4 kagillion mocking frameworks out there that are quite fantastic, you're wasting time be creating your own.

Listen, you want info on MVVM and unit testing and all this with WP7, there are a lot better tutorials out there.

Hi Matthew,For now, the Reflection.Emit API is not supported on Windows Phone 7, which means that the mocking frameworks you speak off do not work on the phone.Cheers,Danielhttp://danielvaughan.orpius.com

Since you're exploring TDD, Jon and you should check out BDD. I find it a excellent way to know where to start your testing and seems to do a better job of ensuring you only create what you really need.

Remove this comment

Remove this thread

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums, or
Contact Us and let us know.