Creating and implementing the WalksEntryPageViewModelTest class

In this section, we'll take a look at how to create the WalkEntryPageViewModelTest class that will be used for our second unit test to ensure that our ViewModel is properly initialized after the Init instance method is called to determine if our unit test passes or fails under each of the different test conditions.

Let's see how we can achieve this by performing the following steps:

  1. Right-click on the TrackMyWalks.UnitTests project and choose Add | New File... from the pop-up menu. Then, choose the Empty Class option under the General section, as you did in the section entitled Creating and implementing the WalksMainPageViewModelTest located within this chapter.
  2. Next, enter ...

Get Mastering Xamarin UI Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.