Invert BypassFail usage

This commit is contained in:
iiSaLMaN
2019-09-19 08:00:41 +03:00
parent 9de0bcae1e
commit e793854735
2 changed files with 4 additions and 4 deletions

View File

@ -26,14 +26,14 @@ namespace osu.Game.Tests.Visual.Gameplay
{
AddUntilStep("score above zero", () => ((ScoreAccessibleReplayPlayer)Player).ScoreProcessor.TotalScore.Value > 0);
AddUntilStep("key counter counted keys", () => ((ScoreAccessibleReplayPlayer)Player).HUDOverlay.KeyCounter.Children.Any(kc => kc.CountPresses > 0));
AddAssert("cannot fail", () => ((ScoreAccessibleReplayPlayer)Player).BypassFail);
AddAssert("cannot fail", () => !((ScoreAccessibleReplayPlayer)Player).AllowFail);
}
private class ScoreAccessibleReplayPlayer : ReplayPlayer
{
public new ScoreProcessor ScoreProcessor => base.ScoreProcessor;
public new HUDOverlay HUDOverlay => base.HUDOverlay;
public new bool BypassFail => base.BypassFail;
public new bool AllowFail => base.AllowFail;
protected override bool PauseOnFocusLost => false;