Re: ArgumentOutOfRange when compiling test project

Sergio <[email protected]> Fri, 17 Oct 2008 12:48:18 -0300
Newsgroups gmane.comp.windows.dotnet.nunit.user
Organization Strategos
Message-ID <[email protected]>
Really sorry, actually that was my mistake, didn't have any data on an 
array and that was giving me a negative value.

Sergio wrote:
> 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=/
> _______________________________________________
> Nunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nunit-users
>
>   

-------------------------------------------------------------------------
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=/