public void GetMessage_OnlyException() { var exception = new ApplicationException("fake exception"); var result = HtmlErrorReporter.GetMessage(null, exception); Assert.AreEqual("fake exception", result); }
public void GetMessage_TextAndException_ReturnsTextOnly() { var exception = new ApplicationException("fake exception"); var result = HtmlErrorReporter.GetMessage("message text", exception); Assert.AreEqual("message text", result); }
public void GetMessage_OnlyText() { var result = HtmlErrorReporter.GetMessage("message text", null); Assert.AreEqual("message text", result); }