O'Reilly logo

Xamarin Studio for Android Programming: A C# Cookbook by Mathieu Nayrolles

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

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 ...

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