Reputation: 6805
I've tried to write unit tests for my monotouch project without any success. The NUnit dlls are not supported in a Monotouch 4 project.
I've tried some weird workarounds that I've found on some sites but nothing seems to work. These workarounds consist in adding monotouch dll to a Nunit project. This procedure seems to work for others on Monotouch < 4 but it don't work for me (Monotouch > 4). The compiler crashes.
So I was wondering if there are some way to write unit tests into a monotouch project?
Upvotes: 1
Views: 212
Reputation: 535
Alright, what you can do (this is some serious hoop jumping, and kittens die somewhere when you do this...am I missing something?? If not, please Xamarin, make it easier???):
If I get time I will throw a quick example up on GitHub.
This was attempted using: MonoTouch 4.0.5 Mono 2.10.4 MonoDevelop 2.6 Beta 3
Upvotes: 1
Reputation: 16153
Make sure that your NUnit project's target framework version is .NET 4.
Upvotes: 0