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

Adding the Moq NuGet package to the TrackMyWalks.UnitTests project

In this section, we will begin by adding the Moq (pronounced as Mock) NuGet package to our TrackMyWalks.UnitTests project. The Moq library is essentially one of the most popular mocking frameworks that is available for the .NET platform, and we will be using it to help us test our ViewModels for our TrackMyWalks application.

Let's take a look at how we can achieve this by performing the following steps:

  1. Right-click on the Dependencies|NuGet folder, which is located within the TrackMyWalks.UnitTests project, and choose the Add Packages... menu option, as you did in the section entitled Adding the Newtonsoft.Json NuGet package to our solution within Chapter 11, Incorporating ...

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