I have discovered that these seem to be the two main ways of testing for exceptions:
Assert.Throws(()=>MethodThatThrows());
[ExpectedExc
The main difference is:
ExpectedException() attribute makes test passed if exception occurs in any place in the test method.
The usage of Assert.Throws() allows to specify exact place of the code where exception is expected.
NUnit 3.0 drops official support for ExpectedException altogether.
So, I definitely prefer to use Assert.Throws() method rather than ExpectedException() attribute.