Merge pull request #1410 from alesliehughes/master
[mono.git] / mcs / nunit24 / NUnitFramework / framework / IExpectException.cs
1 // ****************************************************************\r
2 // Copyright 2007, Charlie Poole\r
3 // This is free software licensed under the NUnit license. You may\r
4 // obtain a copy of the license at http://nunit.org/?p=license&r=2.4\r
5 // ****************************************************************\r
6 \r
7 using System;\r
8 \r
9 namespace NUnit.Framework\r
10 {\r
11     /// <summary>\r
12     /// Interface implemented by a user fixture in order to\r
13     /// validate any expected exceptions. It is only called\r
14     /// for test methods marked with the ExpectedException\r
15     /// attribute.\r
16     /// </summary>\r
17         public interface IExpectException\r
18     {\r
19                 /// <summary>\r
20                 /// Method to handle an expected exception\r
21                 /// </summary>\r
22                 /// <param name="ex">The exception to be handled</param>\r
23         void HandleException(Exception ex);\r
24     }\r
25 }\r