Unit testing

According to searchsoftwarequality.techtarget.com, unit testing is a software development process in which the smallest testable parts of an application, called units, are individually and independently scrutinized for proper operation. Unit testing is often automated but it can also be done manually.

Getting ready

In this recipe, we will reuse the solution we created in the first recipe.

How to do it...

The following steps should be performed in order to do unit testing:

  1. Add an Android unit test project to your solution.
    How to do it...
  2. The MainActivity class should contain the following:
    public class MainActivity : TestSuiteActivity { protected override ...

Get Xamarin Studio for Android Programming: A C# Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.