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