ExpectedException

We have a problem with tests that verifies theexception type using the NUnit attribute ExpectedException. ReSharper unit testrunner ignores the type of the exception. This test fails in NUnit(correct behavior) but succeeds in ReSharper test runner:

    [Test]

    [ExpectedException(typeof(FileNotFoundException))]

    public void VerifyExpectedException()

    {

      throw new IOException();
    }

ReSharper: Build 5.1.1727.12 on 2010-07-07T20:40:20
NUnit:2.5.5.10112
 
Regards
Kalle

2 comments
Comment actions Permalink

Hi,

Please try to install the latest R# 5.1.1 release from our site.
Hope this helps.
Thank you!

--
Kirill Falk
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

On 9/17/2010 12:28 PM, Karl Lundin wrote:


    
     public void VerifyExpectedException()
     {
       throw new IOException();
     }



0
Comment actions Permalink

Thank you!

I can confirm that the test runner behavior is as expected in ReSharper version 5.1.1751.8.

Regards
Kalle

0

Please sign in to leave a comment.