mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:42:57 +08:00
Fix weirdly named test method and add xmldoc
This commit is contained in:
parent
8d2dccbda5
commit
ac0c988d49
@ -64,7 +64,7 @@ namespace osu.Game.Tests.Visual.Menus
|
|||||||
AddStep("logout", () =>
|
AddStep("logout", () =>
|
||||||
{
|
{
|
||||||
API.Logout();
|
API.Logout();
|
||||||
((DummyAPIAccess)API).StayConnectingNextLogin();
|
((DummyAPIAccess)API).PauseOnConnectingNextLogin();
|
||||||
});
|
});
|
||||||
|
|
||||||
AddStep("enter password", () => loginOverlay.ChildrenOfType<OsuPasswordTextBox>().First().Text = "password");
|
AddStep("enter password", () => loginOverlay.ChildrenOfType<OsuPasswordTextBox>().First().Text = "password");
|
||||||
|
@ -144,8 +144,15 @@ namespace osu.Game.Online.API
|
|||||||
IBindableList<APIUser> IAPIProvider.Friends => Friends;
|
IBindableList<APIUser> IAPIProvider.Friends => Friends;
|
||||||
IBindable<UserActivity> IAPIProvider.Activity => Activity;
|
IBindable<UserActivity> IAPIProvider.Activity => Activity;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// During the next simulated login, the process will fail immediately.
|
||||||
|
/// </summary>
|
||||||
public void FailNextLogin() => shouldFailNextLogin = true;
|
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)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user