/// <summary> /// Sets up the exception notifier used to display /// exceptions to the final user. If not specified, /// assumes the ConsoleExceptionNotifier. /// </summary> protected override void SetupExceptionNotifier() { if (ExceptionNotifier == null) { ExceptionNotifier = new ConsoleExceptionNotifier(); } GlobalRegistry.UIExceptionNotifier = ExceptionNotifier; }
public void UIExceptionNotifier() { //---------------Set up test pack------------------- var exceptionNotifier = new ConsoleExceptionNotifier(); //---------------Execute Test ---------------------- GlobalRegistry.UIExceptionNotifier = exceptionNotifier; //---------------Test Result ----------------------- Assert.AreSame(exceptionNotifier, GlobalRegistry.UIExceptionNotifier); }
/// <summary> /// Sets up the exception notifier used to display /// exceptions to the final user. If not specified, /// assumes the ConsoleExceptionNotifier. /// </summary> protected override void SetupExceptionNotifier() { if (ExceptionNotifier == null) ExceptionNotifier = new ConsoleExceptionNotifier(); GlobalRegistry.UIExceptionNotifier = ExceptionNotifier; }