Re: ExpectedMessage
"Charlie Poole" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <000101c8be93$4e9819c0$8000a8c0@ferrari> |
There are two approaches... 1. Retrieve the expected message from the resource file in your test. 2. Hard code the expected message in your test. Which you use depends on whether you want the test to fail if the message is changed. Charlie _____ From: [email protected] [mailto:[email protected]] On Behalf Of Jan Geerinckx Sent: Saturday, May 24, 2008 3:38 PM To: [email protected] Subject: [Nunit-users] ExpectedMessage Hi all, I need to test on the message of an exception that (hopefully) will be raised. How do I accomplish this if the string used for this exceptionmessage comes from a Resource-file? Thx! Jan ------------------------------------------------------------------------- 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