mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 09:03:22 +08:00
Adds test cases for at-sign and colon adjacent to the username
This commit is contained in:
parent
b6d47a41f4
commit
be86ca582c
@ -74,5 +74,17 @@ namespace osu.Game.Tests.Online.Chat
|
||||
{
|
||||
Assert.IsFalse(MessageNotifier.checkContainsUsername("Test pad[#^-^#]oru message", "[#^-^#]"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestContainsUsernameAtSign()
|
||||
{
|
||||
Assert.IsTrue(MessageNotifier.checkContainsUsername("@username hi", "username"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestContainsUsernameColon()
|
||||
{
|
||||
Assert.IsTrue(MessageNotifier.checkContainsUsername("username: hi", "username"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user