public void UrlLongHttpAndText2_FAIL() { // too many tokens (more then 12) to see the ending |TEXT: var source = "[URL:https://abc.wab.com:555/way/:a:a:a:a:a:a:a:a:aid/this_is_the_path_too_long/src.png?a=1&d=2 |TEXT:this is the path to source]"; var result = new WikiConverter().ConvertToHtml(source); var expected = "<p><a href=\"https://abc.wab.com:555/way/:a:a:a:a:a:a:a:a:aid/this_is_the_path_too_long/src.png?a=1&d=2\"" + " title=\"https://abc.wab.com:555/way/:a:a:a:a:a:a:a:a:aid/this_is_the_path_too_long/src.png?a=1&d=2\"" + " >this is the path to source</a></p>\r\n"; Assert.IsFalse(result.Equals(expected, StringComparison.Ordinal), "RESULT:\r\n" + result + "\r\n EXPECTED:\r\n" + expected); Assert.IsTrue(result.IsEmpty()); }
public void UrlAddressIsRecognized_FAIL() { var source = "[URL:https://abc.wab:com:555/way?id/thi&s-i?s-i:t_t&oo_Lo:ng|TEXT:this is the path to source]"; var result = new WikiConverter().ConvertToHtml(source); Assert.IsTrue(result.IsEmpty(), "result was (instead of string empty):\r\n" + result); }