Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Can't find 'Void System.Int32[,].Set(Int32, Int32, Int32)'
moswald
#1 Posted : Friday, June 1, 2012 3:37:34 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/31/2012(UTC)
Posts: 16
Location: Austin, TX

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
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
Code:
fail = true
NCrunch will report the following:

Code:

*** 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
Remco
#2 Posted : Friday, June 1, 2012 10:17:52 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
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.
moswald
#3 Posted : Saturday, June 2, 2012 6:58:08 AM(UTC)
Rank: Member

Groups: Registered
Joined: 5/31/2012(UTC)
Posts: 16
Location: Austin, TX

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Thanks, turning off instrumentation did the trick.

NCrunch is awesome, btw, great work!
1 user thanked moswald for this useful post.
Remco on 6/2/2012(UTC)
Remco
#5 Posted : Tuesday, June 19, 2012 4:34:47 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
For anyone interested, 1.40b has just been released with a fix for the above issue.
1 user thanked Remco for this useful post.
moswald on 6/19/2012(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download