1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-29 04:41:19 +08:00

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
Unverified
parent 9b8fdcbcdc
commit a2df123c6d
@@ -35,6 +35,15 @@ namespace osu.Game.Tests.Chat
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()
{