[Mono-list] ArrayListTest

Dan Lewis dihlewis@yahoo.co.uk
18 Feb 2002 20:01:07 +0000


On Sun, 2002-02-17 at 21:47, Nick Drochak wrote:
> > 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.
> 
> Dan has a fix for Nunit for this problem.  He is contacting the Nunit
> authors to coordinate the patch.

I checked in a one-liner to corlib.build so that it excludes
System.Exception from the cmp and res builds. Seems like another one of
our core types that the MS runtime is not happy sharing a bed with :(

In this case, the TargetInvocationException thrown by NUnit's dynamic
invoke of Bucky's Test() method was not at all happy with the non-MS
derived NotImplementedException it threw. It returned the inner
exception to be null to an unsuspecting NUnit, which subsequently
dropped the test process with the rather unhelpful message: "Could not
run tests."

The fault was ours. My apologies for besmirching the good name of NUnit.

Dan.



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com