Before you start

This is a testing class. To complete the coding exercises, you will need a Xamarin development environment with a simulator or emulator to run the exercise on. Please read the setup requirements if you need help installing the Xamarin development environment.

Overview

This class introduces the student to testing with Visual Studio and NUnit.

Objectives

  1. Describe the importance of testing
  2. Compare the types of tests and create unit tests with NUnit

Lecture

XTC101 - Introduction to Testing.

Exercises

Exercise materials are available from GitHub. The code can be cloned through a desktop Git client or downloaded directly as a ZIP file.

  1. Creating Unit Tests
    Exercise  
    In this demonstration, you will learn the how to create unit tests and how to understand the unique aspects of testing mobile apps.
  2. Creating unit, regression and integration tests
    Exercise  
    In this exercise, you will understand how to create unit tests with NUnit, how to name and structure them as well as best practices.