Creating Unit Tests for Xamarin Forms Apps

Play Creating Unit Tests for Xamarin Forms Apps
Sign in to queue


This video will walk you through creating Unit Tests for Xamarin Forms apps. To make it easy to unit test the app, this demo uses MVVM design pattern to ensure separation of logic code from UI code.

The discussed concepts are:

1) Unit Test template in Visual Studio

2) TestClass and TestMethod attributes

3) Naming conventions

4) Arrange, Act and Assert

5) Test Explorer



C#, MVP, MVVM, Test, Xamarin



Download this episode

The Discussion

  • User profile image

    Hi Houssem and thanks for this great lecture. I have a question tought.
    I am new to Xamarin.Forms and to Unit Testing, too. How would this change if you used Shared Project instead of Portable Class Library?

  • User profile image

    Hi. I'd like the know the same thing. A shared project is the recommendation yet all examples seem to talk about PCL projects. How do we add unit testing to a shared xamarin project please.

Add Your 2 Cents