[smuxi/stable] Engine-Tests: add links that are not correctly identified as links
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/stable] Engine-Tests: add links that are not correctly identified as links
- Date: Sat, 5 Nov 2016 18:56:11 +0000 (UTC)
commit 2e4b092679a3a7245be4b95263fcb15bf348316a
Author: Mirco Bauer <meebey meebey net>
Date: Sun Nov 6 02:54:05 2016 +0800
Engine-Tests: add links that are not correctly identified as links
src/Engine-Tests/MessageBuilderTests.cs | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/src/Engine-Tests/MessageBuilderTests.cs b/src/Engine-Tests/MessageBuilderTests.cs
index f040d48..2819040 100644
--- a/src/Engine-Tests/MessageBuilderTests.cs
+++ b/src/Engine-Tests/MessageBuilderTests.cs
@@ -588,6 +588,25 @@ namespace Smuxi.Engine
[Ignore]
public void BrokenAppendMessageWithOddUrls()
{
+ var msg = "https://en.wikipedia.org/wiki/Brace_(singer)";
+ var builder = new MessageBuilder();
+ builder.TimeStamp = DateTime.MinValue;
+ builder.Append(new UrlMessagePartModel(msg));
+ TestMessage(msg, builder.ToMessage());
+
+ msg = "see the link (https://en.wikipedia.org/wiki/Brace_(singer))";
+ builder = new MessageBuilder();
+ builder.TimeStamp = DateTime.MinValue;
+ builder.Append(new TextMessagePartModel("see the link ("));
+ builder.Append(new UrlMessagePartModel(msg));
+ builder.Append(new TextMessagePartModel(")"));
+ TestMessage(msg, builder.ToMessage());
+
+ msg =
"https://www.amazon.de/TP-Link-TL-SG105-Gigabit-lüfterloses-Passivkühlkonzept/dp/B00A128S24/";
+ builder = new MessageBuilder();
+ builder.TimeStamp = DateTime.MinValue;
+ builder.Append(new UrlMessagePartModel(msg));
+ TestMessage(msg, builder.ToMessage());
}
[Test]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]