mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 16:13:34 +08:00
Add failing test case for fake (but still incorrectly allowed) protocol
This commit is contained in:
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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user