Forum Visual Studio

Unit testing in OS X and Windows.

I've installed Xamarin Studio on a mac and pc. I created a solution on the mac, added a unit test project to the solution, added some tests, everything runs and works great.

I commit that to a git repository and then clone to my Windows PC. The solution compiles, however unit tests fail with an error of

TypeInitializationException: The type initalizer for 'Mono.Unix.Native.Stdlib' threw an exception

I imagine this is due to the nunit reference on the mac being for the Mono runtime and the PC trying is trying to run it using .NET

Is there any way to create a (specifically, Android, but that doesn't really matter) project that will compile and run Unit Tests from within Xamarin Studio on both OS X and Windows from the same source repository?

Posts

Sign In or Register to comment.