How do I use Assert.Throws to assert the type of the exception and the actual message wording?
Assert.Throws
Something like this:
You can now use the ExpectedException attributes, e.g.
ExpectedException
[Test] [ExpectedException(typeof(InvalidOperationException), ExpectedMessage="You can't do that!"] public void MethodA_WithNull_ThrowsInvalidOperationException() { MethodA(null); }