Using Mocks to test Xamarin

Many of us believe that Unit Testing is critical in any non-trivial programming.  But Unit Testing can be difficult, especially the use of fakes.  The most common fake is a Mock; unfortunately they are also the most confusing.

There are a number of Unit Testing libraries you might use with Xamarin, but the easiest to integrate is nUnit.  For mocking, Moq makes great sense, especially as it works so well with nUnit.  Continued here…

Share

About Jesse Liberty

Jesse Liberty is an independent consultant and programmer with three decades of experience writing and delivering software projects. He is the author of 2 dozen books and multiple Pluralsight courses, and has been a Senior Technical Evangelist for Microsoft, a Distinguished Software Engineer for AT&T, a VP for Information Services for Citibank and a Software Architect for PBS. He is a Xamarin Certified Mobile Developer and a Xamarin MVP, Microsoft MVP and Telerik MVP.
This entry was posted in Xamarin. Bookmark the permalink.

One Response to Using Mocks to test Xamarin

  1. ask says:

    Everyone loves what you guys tend to be up too. This kind of clever work and
    reporting! Keep up the excellent works guys I’ve you guys to
    blogroll.

Leave a Reply

Your email address will not be published.