Use "==" instead of "equals"

This commit is contained in:
Joseph Madamba 2018-03-31 10:51:44 -07:00
parent ee14ca7cc5
commit 1bebda61f8

View File

@ -185,13 +185,13 @@ namespace osu.Game.Tests.Visual
private void testRankedText(Mod mod) private void testRankedText(Mod mod)
{ {
AddWaitStep(1, "wait for fade"); AddWaitStep(1, "wait for fade");
AddAssert("check for ranked", () => modSelect.RankedLabel.Alpha.Equals(0)); AddAssert("check for ranked", () => modSelect.RankedLabel.Alpha == 0);
selectNext(mod); selectNext(mod);
AddWaitStep(1, "wait for fade"); AddWaitStep(1, "wait for fade");
AddAssert("check for unranked", () => !modSelect.RankedLabel.Alpha.Equals(0)); AddAssert("check for unranked", () => !(modSelect.RankedLabel.Alpha == 0));
selectPrevious(mod); selectPrevious(mod);
AddWaitStep(1, "wait for fade"); AddWaitStep(1, "wait for fade");
AddAssert("check for ranked", () => modSelect.RankedLabel.Alpha.Equals(0)); AddAssert("check for ranked", () => modSelect.RankedLabel.Alpha == 0);
} }
private void selectNext(Mod mod) => AddStep($"left click {mod.Name}", () => modSelect.GetModButton(mod)?.SelectNext(1)); private void selectNext(Mod mod) => AddStep($"left click {mod.Name}", () => modSelect.GetModButton(mod)?.SelectNext(1));