Use Bindable for setting score

This commit is contained in:
Andrei Zavatski
2019-07-14 12:40:54 +03:00
parent 0584ee9ce5
commit d30ae24f58
2 changed files with 15 additions and 10 deletions

View File

@ -43,8 +43,9 @@ namespace osu.Game.Tests.Visual.SongSelect
});
AddStep(@"Trigger visibility", topScoreContainer.ToggleVisibility);
AddStep(@"Add score", () => topScoreContainer.TopScore = scores[0]);
AddStep(@"Add another score", () => topScoreContainer.TopScore = scores[1]);
AddStep(@"Add score", () => topScoreContainer.TopScore.Value = scores[0]);
AddStep(@"Add another score", () => topScoreContainer.TopScore.Value = scores[1]);
AddStep(@"Add null score", () => topScoreContainer.TopScore.Value = null);
scores = new APILegacyUserTopScoreInfo[]
{