Summary
In this chapter, we looked into how to take advantage of the loosely coupled architecture that we have developed in the earlier chapters of this book to write unit tests. We used a mocking framework to mock out the services that our ViewModels are dependent on to be able to effectively test the logic within them. We also looked at how to leverage Xamarin's UITest framework to write and run UI tests both locally and in Xamarin's Test Cloud environment.