Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 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;
 }