Esempio n. 1
0
 public void ExceptionToStringIncludesMessage()
 {
     Notifier notifier = new Notifier();
     Exception ex = new Exception("my message");
     string result = Notifier.ExceptionToString(ex);
     Assert.IsTrue(result.Contains("my message"));
 }
Esempio n. 2
0
 public void ExceptionToStringExcuses()
 {
     Notifier notifier = new Notifier();
     Exception ex = new Exception();
     string result = Notifier.ExceptionToString(ex);
     Assert.IsTrue(result.Contains(Constants.AskToFixAndExcuse));
 }