ng the
exact text of the message property of the exception. After NUnit 2.2.4, the
same extension was made to the constructor taking a string argument. With
NUnit 2.4, these arguments are marked obsolete, and a named parameter
is provided instead...</p>

<div class="code" style="width: 44em"><pre class="prettyprint">// Obsolete form:
[ExpectedException( typeof( ArgumentException ), "expected message" )]
[ExpectedException( "System.ArgumentException", "expected message" )]

// Prefered form:
[ExpectedExcepti