public void TestFormatForExceptionWithMessage() { Exception ex = new Exception("moszi"); string s = ex.FormatToLog(); Assert.IsTrue(s.Contains("moszi")); }
public void TestFormatForEmptyException() { Exception ex = new Exception(); string s = ex.FormatToLog(); Assert.IsNotNull(s); }