[smuxi/experiments/certfp: 25/55] Engine-Tests: added test-case for broken mailto link



commit 6da332dc6d264760cf27afd3c92aa9866df31daa
Author: Mirco Bauer <meebey meebey net>
Date:   Fri Jan 3 03:53:29 2014 +0100

    Engine-Tests: added test-case for broken mailto link

 src/Engine-Tests/MessageBuilderTests.cs |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/Engine-Tests/MessageBuilderTests.cs b/src/Engine-Tests/MessageBuilderTests.cs
index ce5f2be..085812f 100644
--- a/src/Engine-Tests/MessageBuilderTests.cs
+++ b/src/Engine-Tests/MessageBuilderTests.cs
@@ -491,5 +491,15 @@ namespace Smuxi.Engine
             builder.Append(new TextMessagePartModel(@". This is another sentence."));
             TestMessage(msg, builder.ToMessage());
         }
+
+        [Test]
+        public void BrokenMail()
+        {
+            var msg = "mailto:/larry google com";
+            var builder = new MessageBuilder();
+            builder.TimeStamp = DateTime.MinValue;
+            builder.Append(new TextMessagePartModel("mailto:/larry google com"));
+            TestMessage(msg, builder.ToMessage());
+        }
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]