mirror of https://github.com/ppy/osu
Now TestAutoOpenOnModSelect checks if customisation closes after deselecting mod
This commit is contained in:
parent
63696bff74
commit
590429b43b
|
@ -63,7 +63,7 @@ public void TestButtonShowsOnModAlreadyAdded()
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void TestCustomisationOpensOnModSelect()
|
||||
public void TestAutoOpenOnModSelect()
|
||||
{
|
||||
createModSelect();
|
||||
|
||||
|
@ -71,6 +71,8 @@ public void TestCustomisationOpensOnModSelect()
|
|||
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()
|
||||
|
|
Loading…
Reference in New Issue