Add failing test case for fake (but still incorrectly allowed) protocol

This commit is contained in:
Bartłomiej Dach 2023-09-18 09:19:12 +02:00
parent 9b8fdcbcdc
commit a2df123c6d
No known key found for this signature in database
1 changed files with 9 additions and 0 deletions

View File

@ -35,6 +35,15 @@ public void TestUnsupportedProtocolLink()
Assert.AreEqual(0, result.Links.Count);
}
[Test]
public void TestFakeProtocolLink()
{
Message result = MessageFormatter.FormatMessage(new Message { Content = "This is a osunotarealprotocol://completely-made-up-protocol we don't support." });
Assert.AreEqual(result.Content, result.DisplayContent);
Assert.AreEqual(0, result.Links.Count);
}
[Test]
public void TestSupportedProtocolLinkParsing()
{