public void FormatErrorMessage_GivenException_ReturnsFormattedString() { var ex = new Exception("Broken"); var expected = "Message: Broken\r\nInnerException: \r\nStackTrace: "; var actual = _sut.FormatErrorMessage(ex); Assert.IsNotNull(actual); Assert.AreEqual(expected, actual); }