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…

About Jesse Liberty

Jesse Liberty has three decades of experience writing and delivering software projects and is the author of 2 dozen books and a couple dozen online courses. His latest book, Building APIs with .NET will be released early in 2025. Liberty is a Senior SW Engineer for CNH and he was 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 Microsoft MVP.
This entry was posted in Xamarin. Bookmark the permalink.

One Response to Using Mocks to test Xamarin

Comments are closed.