Now TestAutoOpenOnModSelect checks if customisation closes after deselecting mod

This commit is contained in:
ProTheory8 2020-02-09 09:15:32 +00:00
parent 63696bff74
commit 590429b43b

View File

@ -63,7 +63,7 @@ namespace osu.Game.Tests.Visual.UserInterface
}
[Test]
public void TestCustomisationOpensOnModSelect()
public void TestAutoOpenOnModSelect()
{
createModSelect();
@ -71,6 +71,8 @@ namespace osu.Game.Tests.Visual.UserInterface
AddAssert("Customisation closed", () => modSelect.ModSettingsContainer.Alpha == 0);
AddStep("select mod", () => modSelect.SelectMod(testCustomisableAutoOpenMod));
AddAssert("Customisation opened", () => modSelect.ModSettingsContainer.Alpha == 1);
AddStep("deselect mod", () => modSelect.SelectMod(testCustomisableAutoOpenMod));
AddAssert("Customisation closed", () => modSelect.ModSettingsContainer.Alpha == 0);
}
private void createModSelect()