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

Remove usage of no longer needed property

This commit is contained in:
David Zhao 2019-08-01 21:26:52 +09:00 committed by GitHub
parent f0941a11b5
commit 6ab9f645a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,14 +97,14 @@ namespace osu.Game.Tests.Visual.Menus
[Test] [Test]
public void TestExitMultiWithEscape() public void TestExitMultiWithEscape()
{ {
pushAndConfirm(() => new TestMultiplayer(), "multiplayer"); pushAndConfirm(() => new Screens.Multi.Multiplayer(), "multiplayer");
exitViaEscapeAndConfirm(); exitViaEscapeAndConfirm();
} }
[Test] [Test]
public void TestExitMultiWithBackButton() public void TestExitMultiWithBackButton()
{ {
pushAndConfirm(() => new TestMultiplayer(), "multiplayer"); pushAndConfirm(() => new Screens.Multi.Multiplayer(), "multiplayer");
exitViaBackButtonAndConfirm(); exitViaBackButtonAndConfirm();
} }
@ -177,11 +177,6 @@ namespace osu.Game.Tests.Visual.Menus
public ModSelectOverlay ModSelectOverlay => ModSelect; public ModSelectOverlay ModSelectOverlay => ModSelect;
} }
private class TestMultiplayer : Screens.Multi.Multiplayer
{
protected override bool RequireOnline => false;
}
private class TestLoader : Loader private class TestLoader : Loader
{ {
protected override ShaderPrecompiler CreateShaderPrecompiler() => new TestShaderPrecompiler(); protected override ShaderPrecompiler CreateShaderPrecompiler() => new TestShaderPrecompiler();