mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Add a testcase
This commit is contained in:
parent
17749e84f9
commit
e16de58450
@ -39,13 +39,27 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
header = new ProfileHeader();
|
header = new ProfileHeader();
|
||||||
Add(header);
|
Add(header);
|
||||||
|
|
||||||
AddStep("Show offline dummy", () => header.User.Value = TestSceneUserProfileOverlay.TEST_USER);
|
AddStep("Show test dummy", () => header.User.Value = TestSceneUserProfileOverlay.TEST_USER);
|
||||||
|
|
||||||
AddStep("Show null dummy", () => header.User.Value = new User
|
AddStep("Show null dummy", () => header.User.Value = new User
|
||||||
{
|
{
|
||||||
Username = "Null"
|
Username = "Null"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
AddStep("Show online dummy", () => header.User.Value = new User
|
||||||
|
{
|
||||||
|
Username = "IAmOnline",
|
||||||
|
LastVisit = DateTimeOffset.Now,
|
||||||
|
IsOnline = true,
|
||||||
|
});
|
||||||
|
|
||||||
|
AddStep("Show offline dummy", () => header.User.Value = new User
|
||||||
|
{
|
||||||
|
Username = "IAmOffline",
|
||||||
|
LastVisit = DateTimeOffset.Now,
|
||||||
|
IsOnline = false,
|
||||||
|
});
|
||||||
|
|
||||||
addOnlineStep("Show ppy", new User
|
addOnlineStep("Show ppy", new User
|
||||||
{
|
{
|
||||||
Username = @"peppy",
|
Username = @"peppy",
|
||||||
|
Loading…
Reference in New Issue
Block a user