ArgumentOutOfRange when compiling test project

Sergio <[email protected]> Fri, 17 Oct 2008 12:07:39 -0300
Newsgroups gmane.comp.windows.dotnet.nunit.user
Organization Strategos
Message-ID <[email protected]>
Hi,

I get an ArgumentOutOfRangeException on NUnit v2.4.8 when I try to 
compile my the project with my tests. Seems like NUnit doesn't let you 
initialize static attributes with negative values that are going to be 
used as array indexes. The funny thing is that the first line of my 
TestCase is the initialization of that static attribute 
(ControladorNavegacao.MatriculaAtual) to a valid value.

Is there a way to disable this annoying and useless behavior? Because if 
you going to add something like this you should predict all possible 
code paths to see if the attribute is not going to be initialized to a 
valid value. Which is impossible or to complex to implement...

TIA,
Sergio


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/