Build/Test Issues

Can't find 'Void System.Int32[,].Set(Int32, Int32, Int32)'

Started by moswald on 7,169 views

I've built a test project you can access here on bitbucket.org.

Basically, go into the UnitTest project, TestExtensions.cs file, and on line 29 set
fail = true
NCrunch will report the following:


*** Failures ***

Exception
System.MissingMethodException: System.MissingMethodException : Method not found: 'Void System.Int32[,].Set(Int32, Int32, Int32)'.
   at IEnumerableExtensions.Extensions.PopulatedSquare[T](IEnumerable`1 contents)
   at UnitTests.TestExtensions.CanConvertDoubleIEnumerableToMultidimensionalArray(IEnumerable`1 content) in C:\Users\Matt\projects\scratch\ncrunch_test\UnitTests\TestExtensions.cs:line 56#0
System.MissingMethodException: System.MissingMethodException : Method not found: 'Void System.Int32[,].Set(Int32, Int32, Int32)'.
   at IEnumerableExtensions.Extensions.PopulatedSquare[T](IEnumerable`1 contents)
   at UnitTests.TestExtensions.CanConvertDoubleIEnumerableToMultidimensionalArray(IEnumerable`1 content) in C:\Users\Matt\projects\scratch\ncrunch_test\UnitTests\TestExtensions.cs:line 56#1
Hi, thanks for sharing this. It looks like the instrumentation can't properly handle a method that returns multidimensional arrays. This should be very fixable. A workaround may be to turn off instrumentation for the project containing this method, or look at another way of expressing this return value. I'll see what I can do about sorting it out properly.
Thanks, turning off instrumentation did the trick.

NCrunch is awesome, btw, great work!
This post has been deleted.
For anyone interested, 1.40b has just been released with a fix for the above issue.

Post a reply

Log in to reply.