1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:33:20 +08:00

Fix weirdly named test method and add xmldoc

This commit is contained in:
Dean Herbert 2023-06-26 13:21:29 +09:00
parent 8d2dccbda5
commit ac0c988d49
2 changed files with 9 additions and 2 deletions

View File

@ -64,7 +64,7 @@ namespace osu.Game.Tests.Visual.Menus
AddStep("logout", () =>
{
API.Logout();
((DummyAPIAccess)API).StayConnectingNextLogin();
((DummyAPIAccess)API).PauseOnConnectingNextLogin();
});
AddStep("enter password", () => loginOverlay.ChildrenOfType<OsuPasswordTextBox>().First().Text = "password");

View File

@ -144,8 +144,15 @@ namespace osu.Game.Online.API
IBindableList<APIUser> IAPIProvider.Friends => Friends;
IBindable<UserActivity> IAPIProvider.Activity => Activity;
/// <summary>
/// During the next simulated login, the process will fail immediately.
/// </summary>
public void FailNextLogin() => shouldFailNextLogin = true;
public void StayConnectingNextLogin() => stayConnectingNextLogin = true;
/// <summary>
/// During the next simulated login, the process will pause indefinitely at "connecting".
/// </summary>
public void PauseOnConnectingNextLogin() => stayConnectingNextLogin = true;
protected override void Dispose(bool isDisposing)
{