O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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  ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required