Re: Break on Assert failure?
"Charlie Poole" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <00ec01c8a61a$e4fdadd0$6401a8c0@ferrari> |
Hi Phil, Since NUnit throws an NUnit.Framework.AssertionException whenever an assert fails, you can tell Visual Studio to break when that exception is thrown. Charlie _____ From: [email protected] [mailto:[email protected]] On Behalf Of Phil Atkin Sent: Thursday, April 24, 2008 7:33 AM To: [email protected] Subject: [Nunit-users] Break on Assert failure? If this feature is already in NUnit, I'd like to know how to use it. If it's not, this is a feature request. I'm trying to test quite complicated algorithms under lots of different conditions. So my tests generate data according to prescribed recipes, then invoke the algorithms. Quite often, the algorithms fail for particular sets of data. What I'd like to do is to be able to run a set of NUnit tests under the (Visual Studio) debugger so that a failure in an NUnit Assert statement would not simply exit the test with a failure, but would cause a break in my code execution. Is there a way to arrange this? Thanks, Phil ______________________________________________________________________ Sent from a division of Synoptics Ltd. Registered as a company in England (1874861) Registered address: Beacon House, Nuffield Road, Cambridge CB4 1TF, UK ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. ______________________________________________________________________ Please consider the environment before printing this email. ______________________________________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users