[Mono-list] ArrayListTest

bucky@phantom.keystreams.com bucky@phantom.keystreams.com
Sun, 17 Feb 2002 12:32:40 -0800 (PST)

On Sun, 17 Feb 2002, [iso-8859-1] Dan Lewis wrote:

>  --- Nick Drochak <ndrochak@gol.com> wrote:
> > It seems that ArrayListTest is causing the test suite to have some
> > problems.  It is a similar symptom to when we needed to exclude
> > System.Enum from corlib_res.dll.  However, I'm not sure what's up with
> > this one.
> When you say a similar symptom, I hope you're not getting the dreaded Fatal
> Execution Engine Error. When I run NUnitConsole on ArrayListTest, it does a bit
> and then says "Could not create and run test suite." (yeah very helpful, NUnit
> :)
> This seems to me to be caused by the unimplemented methods in ArrayList
> throwing a NotImplementedException. Rather understandably, the spec doesn't
> think they're supposed to throw this exception. But shouldn't NUnit catch
> unexpected exceptions like this that are not explicitly caught - and probably
> shouldn't be caught - by the Test case?

I would definitely call that a bug in NUnit.  A test function throwing an
exception (any exception) should not crash the unit-testing framework.  
That should just register as an error for the test function.

BTW, I'm assuming that this problem is coming up when we test the Mono
corlibs, right?  Not the MS reference libs?