Runtime Environment
OS Version: MacOSX 16.7.0.0
CLR Version: 4.0.30319.42000
Test Files
/Users/vagrant/git/Expenses/Expenses.Core.Tests.NUnit/Expenses.Core.Tests.NUnit.csproj
Assertion at dynamic-image.c:209, condition `prev == MONO_HANDLE_RAW (obj)ā not met
Stacktrace:
at <0xffffffff>
at (wrapper managed-to-native) System.Reflection.Emit.ModuleBuilder.getToken (System.Reflection.Emit.ModuleBuilder,object,bool) [0x0000b] in :0
at System.Reflection.Emit.ModuleBuilder.GetToken (System.Reflection.MemberInfo,bool) [0x00061] in :0
All our unit tests ran fine under the previous version of Vs for Mac and Mono 5.2.
Weāre using MOQ for mocking in our unit tests and this issue was reported in their repo a few weeks ago: https://github.com/moq/moq4/issues/449
But, theyāre referring to it as a mono bug.
In the interim the only workaround I have is to downgrade to the Hybrid stack. This will have to be a very temporary measure as Iām preparing an iPhone X release.
I havenāt, as weāre days away from preparing a release. Our corporate policy is to not release production code built on beta components. So using a beta release of Vs4Mac is out of the question.
Out of interest Iāve tried the beta stack and it works fine. The difference between the stable and beta Mono version is
Stable (this fails to run unit tests):
Just published a Script here Install specific Mono version - with that you can install any available Mono version. @benrnz-sv itād be awesome if you could confirm that it works for you too