mirror of
https://github.com/ppy/osu
synced 2025-01-22 13:53:30 +00:00
Use "==" instead of "equals"
This commit is contained in:
parent
ee14ca7cc5
commit
1bebda61f8
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user