using System; namespace NUnit.Util { /// /// The delegate for all events related to loading test projects /// public delegate void TestProjectEventHandler ( object sender, TestProjectEventArgs args ); public enum TestProjectAction { ProjectLoading, ProjectLoaded, ProjectLoadFailed, ProjectUnloading, ProjectUnloaded, ProjectUnloadFailed, } /// /// Summary description for TestProjectEventArgs. /// public class TestProjectEventArgs : EventArgs { #region Instance Variables // The action represented by the event private TestProjectAction action; // The project name private string projectName; // The exception causing a failure private Exception exception; #endregion #region Constructors public TestProjectEventArgs( TestProjectAction action, string projectName ) { this.action = action; this.projectName = projectName; } public TestProjectEventArgs( TestProjectAction action, string projectName, Exception exception ) { this.action = action; this.projectName = projectName; this.exception = exception; } #endregion #region Properties public TestProjectAction Action { get { return action; } } public string ProjectName { get { return projectName; } } public Exception Exception { get { return exception; } } #endregion } }