ExpectedException and derived exception types
"Nassar, Anthony" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
I'm right in thinking that this: [ExpectedException(typeof(DbException))] ... ...will not work if the actual exception type is SQLiteException, right? I'd hoped to implement a generic fixture for some database-independent code. So I have to implement my own handler (http://nunit.net/index.php?p=exception&r=2.4.2), or make the expected exception's type one of the type parameters. By the way, as far as I can tell, Resharper's test runner doesn't recognize the Handler property of the ExpectedException class. Caveat emptor. ________________________________ Tony Nassar Cell: (703) 994-0954 Blog: http://slideguitarist.blogspot.com/ <blocked::http://slideguitarist.blogspot.com/> Music: http://www.soundclick.com/thecompletists <http://www.soundclick.com/thecompletists> "God love me, and I'm a hell of a fighter.." - Floyd Mayweather ------------------------------------------------------------------------- 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