I’m currently working on a notification plugin for Xamarin Forms and wanted to setup some unit tests. The problem is my code accesses the device-specific notification systems in iOS and Android. This means I can’t just run my unit tests on Windows. Instead I need to run the unit tests in a iOS or Android environment. In my case this means an emulator.
How to do that? Use the NUnit 3 Xamarin Runners. It was not clear how to correctly create the test projects but the way that worked for me was this.
[Read More]