newby question;
How to use [ExceptedException] in testcase?
I have added this [ExceptedException] under [Test] and run the case:
-> if case succees, NUnit shows it fails: Test_try: An Exception was excepted
-> if case fails, NUnit shows also it fails and I am happy
But if I remove the [ExceptedException]
-> if case succees, NUnit shows it succees and I am happy
-> if case fails, NUnit shows it succees and I amnot happy
Is there some very simple example how to use this [ExceptedException]?
Should the be added some ".Throw" stuff?
NUnit ExceptedException
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: NUnit ExceptedException
Hi!
Ranorex Support Team
This documentation includes all the stuff you need.
Regards,
Peter
Ranorex Support Team
Ranorex Support Team
Please see following Link form NUnit http://www.nunit.org/index.php?p=exception&r=2.4SanMan wrote:Is there some very simple example how to use this [ExceptedException]?
This documentation includes all the stuff you need.
Regards,
Peter
Ranorex Support Team