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
1 changed files with 3 additions and 1 deletions

View File

@ -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()