Skip to content

Commit

Permalink
Rename modSelect{Screen -> Overlay}2 variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed May 11, 2022
1 parent 62f6caf commit 9b7ff9f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public void TestDismissCustomisationViaDimmedArea()
public void TestSettingsNotCrossPolluting()
{
Bindable<IReadOnlyList<Mod>> selectedMods2 = null;
ModSelectOverlay modSelectScreen2 = null;
ModSelectOverlay modSelectOverlay2 = null;

createScreen();
AddStep("select diff adjust", () => SelectedMods.Value = new Mod[] { new OsuModDifficultyAdjust() });
Expand All @@ -235,15 +235,15 @@ public void TestSettingsNotCrossPolluting()

AddStep("create second overlay", () =>
{
Add(modSelectScreen2 = new UserModSelectOverlay().With(d =>
Add(modSelectOverlay2 = new UserModSelectOverlay().With(d =>
{
d.Origin = Anchor.TopCentre;
d.Anchor = Anchor.TopCentre;
d.SelectedMods.BindTarget = selectedMods2;
}));
});

AddStep("show", () => modSelectScreen2.Show());
AddStep("show", () => modSelectOverlay2.Show());

AddAssert("ensure first is unchanged", () => SelectedMods.Value.OfType<OsuModDifficultyAdjust>().Single().CircleSize.Value == 8);
AddAssert("ensure second is default", () => selectedMods2.Value.OfType<OsuModDifficultyAdjust>().Single().CircleSize.Value == null);
Expand Down

0 comments on commit 9b7ff9f

Please sign in to comment.