1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +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
parent 9b8fdcbcdc
commit a2df123c6d
No known key found for this signature in database

View File

@ -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()
{