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 WalksMainPageViewModelTest class

In this section, we'll take a look at how to create the WalksMainPageViewModelTest class, which will essentially check to see when our ViewModel passes or fails under different test scenarios.

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

  1. Right-click on the TrackMyWalks.UnitTests project, choose Add | New File... from the pop-up menu, and choose the Empty Class option under the General section.
  2. Next, enter WalksMainPageViewModelTest for the name of the class to be created, as shown in the following screenshot:

Creating the WalksMainPageViewModelTest Class ...

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