mirror of https://github.com/ppy/osu
Add failing test case for fake (but still incorrectly allowed) protocol
This commit is contained in:
parent
9b8fdcbcdc
commit
a2df123c6d
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue