NUnit ExceptedException : General Questions

NUnit ExceptedException

Ask general questions here.

NUnit ExceptedException

Postby SanMan » Wed May 05, 2010 3:45 pm

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 :D

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?
SanMan
 
Posts: 49
Joined: Tue Apr 13, 2010 10:59 am

Re: NUnit ExceptedException

Postby Support Team » Wed May 05, 2010 5:55 pm

Hi!

Ranorex Support Team
SanMan wrote:Is there some very simple example how to use this [ExceptedException]?

Please see following Link form NUnit http://www.nunit.org/index.php?p=exception&r=2.4
This documentation includes all the stuff you need.

Regards,
Peter
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to General Questions

Who is online

Users browsing this forum: No registered users and 2 guests