Skip to Content
Mastering Xamarin.Forms - Third Edition
book

Mastering Xamarin.Forms - Third Edition

by Ed Snider
December 2019
Intermediate to advanced content levelIntermediate to advanced
200 pages
3h 54m
English
Packt Publishing
Content preview from Mastering Xamarin.Forms - Third Edition

8

Testing

Throughout this book, we've implemented patterns and best practices with the intention of separating the layers of our TripLog app, making it easier to maintain and test. Over the course of this chapter, we'll write unit tests for the business logic in our ViewModels.

In this chapter, we'll cover the following topics:

  • Adding a unit test project to our solution
  • Writing unit tests for some of the ViewModels in our app
  • Running unit tests and fixing a failing test

We'll start by adding a new NUnit project to our solution, to contain all of the unit tests we'll write throughout the rest of the chapter.

Unit testing

To test the business logic in our TripLog app, we'll start out by creating a new unit test project in our solution that ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Xamarin.Forms - Second Edition

Mastering Xamarin.Forms - Second Edition

Ed Snider
Xamarin.Forms Projects - Second Edition

Xamarin.Forms Projects - Second Edition

Daniel Hindrikes, Johan Karlsson
Xamarin.Forms Projects

Xamarin.Forms Projects

Johan Karlsson, Daniel Hindrikes
Xamarin 4 By Example

Xamarin 4 By Example

Matteo Bortolu, Engin Polat, Mark Radacz

Publisher Resources

ISBN: 9781839213380Supplemental Content