1

I'm developing a C# project in Xamarin that uses MonoGame. I'd like to start writing tests, but when I added the NUnit assembly, wrote a stub test, and tried to execute it I got the following exception:

UnsupportedFrameworkException: Skipped loading assembly monogame-monomac because it references an unsupported version of the nunit.framework, 3.2.0.0

I'm fairly new to mono, so any help in sorting this would be appreciated.

user12341234
  • 6,573
  • 6
  • 23
  • 48
  • How are you executing your tests? i.e. VS Adapter, NUnit-console, Resharper? – Chris Mar 23 '16 at 17:51
  • I used the "Unit Testing" view in Xamarin – user12341234 Mar 23 '16 at 17:53
  • That was a good suggestions, but unfortunately after downgrading NUnit I get the same error with MonoGame, but with an earlier version. Interestingly I installed NUnit versions 3.0.1, but the error message claims the unsupported version in MonoGame is 3.0.5. – user12341234 Mar 23 '16 at 18:00
  • Sorry, I'd mis-read - didn't notice the NUnit reference is in MonoGame. – Chris Mar 23 '16 at 18:02

1 Answers1

1

Thanks to @Chris's suggestion, I investigated what version of NUnit works with MonoGame. Apparently MonoGame can be used with NUnit 2.5.10, so I downgraded NUnit to that version and everything ran smoothly.

user12341234
  • 6,573
  • 6
  • 23
  • 48