Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mono for Android - Unit Testing with Visual Studio

Is there any way to get the built-in MS Test framework to work with Mono for Android? I know they are compiled against different .NET framework profiles which is part of the problem - Mono Android. Unit test framework - but does anyone have a work around for this?

An NUnit or other open source test framework solution would be acceptable as well - but I've read the same issues exist with NUnit. Perhaps there could be an NUnit framework compiled against the same profile as Mono?

I have searched around and the resources are limited.

like image 840
Chris Hawkins Avatar asked May 26 '26 08:05

Chris Hawkins


1 Answers

i don't think that you can; however, i would recommend that you migrate your non-android specific code into a secondary .net assembly (one targeting .net 3.5 or 4.0 or whatever) that testing that assembly. then add linked files into your mono for android project to get your tested code into your project. if you code it in regular .net then you can use what ever testing framework you want to.

like image 85
jcwmoore Avatar answered May 27 '26 23:05

jcwmoore