shelfvur.blogg.se

Xamarin studio mac
Xamarin studio mac




xamarin studio mac

It's probably sensible to use a naming scheme like for the individual test projects do keep your solution structured. Do so using the standard Xamarin templates for new platform projects. In order to run the tests it's necessary to create a project for each platform you'd like to support (iOS, Android and so on). If you are using nunit.xamarin 3.0.1, add the v3.0.1 NUnit NuGet package. Afterwards, add a NuGet dependency on NUnit by right-clicking on Project.Tests and selection Add -> Add NuGet Package.Įnsure you reference the same version of NUnit as the version of nunit.xamarin you are using. Project.Tests (Holds your testing code)Įdit the references of the newly created test project so that it contains a reference to the standard PCL. Afterwards, your solution should look like this: Project Solution

xamarin studio mac

Right Click on the Project Solution and Add a new project using the Cross-Platform Shared Library Template. Your solution might look something like this: Project Solutionįirst, create a new PCL that holds your shared testing code, so the test code doesn't end up in production builds.

xamarin studio mac

It doesn't matter if you're using Xamarin.Forms or Xamarin.iOS/Xamarin.Android directly. This guide assumes that you have a solution with either a PCL or a Shared project and a number of platform specific projects. If you're using Visual Studio for Mac the NUnit templates extension can't be used.






Xamarin studio mac