1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 13:32:54 +08:00

fix formatting and test

add missing line
This commit is contained in:
Aergwyn 2017-12-25 16:52:17 +01:00
parent bb4b5bebf9
commit 48e55a0686

View File

@ -26,6 +26,11 @@ namespace osu.Game.Tests.Visual
public TestCaseUserProfile() public TestCaseUserProfile()
{ {
Add(profile = new TestUserProfileOverlay()); Add(profile = new TestUserProfileOverlay());
}
protected override void LoadComplete()
{
base.LoadComplete();
AddStep("Show offline dummy", () => profile.ShowUser(new User AddStep("Show offline dummy", () => profile.ShowUser(new User
{ {
@ -77,13 +82,14 @@ namespace osu.Game.Tests.Visual
private void checkSupporterTag(bool isSupporter) private void checkSupporterTag(bool isSupporter)
{ {
AddUntilStep(() => profile.Header.User != null, "wait for load"); AddUntilStep(() => profile.Header.User != null, "wait for load");
if(isSupporter) if (isSupporter)
AddAssert("is supporter", () => profile.Header.SupporterTag.Alpha == 1); AddAssert("is supporter", () => profile.Header.SupporterTag.Alpha == 1);
else else
AddAssert("no supporter", () => profile.Header.SupporterTag.Alpha == 0); AddAssert("no supporter", () => profile.Header.SupporterTag.Alpha == 0);
} }
private class TestUserProfileOverlay : UserProfileOverlay { private class TestUserProfileOverlay : UserProfileOverlay
{
public new ProfileHeader Header => base.Header; public new ProfileHeader Header => base.Header;
} }
} }