mirror of
https://github.com/ppy/osu
synced 2025-01-27 00:02:53 +00:00
Add test coverage of chat mentions
This commit is contained in:
parent
d637bbf752
commit
1aea8e911c
@ -33,6 +33,34 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestMention()
|
||||||
|
{
|
||||||
|
AddStep("add normal message", () => channel.AddNewMessages(
|
||||||
|
new Message(1)
|
||||||
|
{
|
||||||
|
Sender = new APIUser
|
||||||
|
{
|
||||||
|
Id = 2,
|
||||||
|
Username = "TestUser2"
|
||||||
|
},
|
||||||
|
Content = "Hello how are you today?",
|
||||||
|
Timestamp = new DateTimeOffset(2021, 12, 11, 13, 33, 24, TimeSpan.Zero)
|
||||||
|
}));
|
||||||
|
|
||||||
|
AddStep("add mention", () => channel.AddNewMessages(
|
||||||
|
new Message(2)
|
||||||
|
{
|
||||||
|
Sender = new APIUser
|
||||||
|
{
|
||||||
|
Id = 2,
|
||||||
|
Username = "TestUser2"
|
||||||
|
},
|
||||||
|
Content = $"Hello {API.LocalUser.Value.Username} how are you today?",
|
||||||
|
Timestamp = new DateTimeOffset(2021, 12, 11, 13, 33, 25, TimeSpan.Zero)
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestDaySeparators()
|
public void TestDaySeparators()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user