Re: Unhandled exception handling tests
"Charlie Poole" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
One of the limitations of the NUnit test AppDomain "sandbox" is that you cannot effectively set an unhandled exception handler unless you are running in the primary AppDomain. As far as the ExpectedException goes, we'd have to see some sample code. Charlie _____ From: [email protected] [mailto:[email protected]] On Behalf Of Bob Nadler Sent: Saturday, January 19, 2008 1:23 AM To: [email protected] Subject: [Nunit-users] Unhandled exception handling tests I'm trying to write some unit tests for a wrapper class that handles Application.ThreadException and AppDomain.CurrentDomain.UnhandledException. If I throw an exception, the test of course fails. If I use the ExpectedExceptionAttribute, my wrapper class never sees the exception. Any ideas on a solution? Thanks, Bob ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users