// Expect a message containing the parameter string
    Contains,
    /// Match the regular expression provided as a parameter
    Regex,
    /// Expect a message starting with the parameter string
    StartsWith
}</pre></div>

<p>The following example is for a test that passes only if an ArgumentException
with a message containing "unspecified" is received.</p>

<div class="code" style="width: 57em">
<pre class="prettyprint">[ExpectedException( typeof( ArgumentException), ExpectedMessage="unspecified", Mat