mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:35:10 +08:00
Remove unnecessary null checks
This commit is contained in:
parent
15bbedca87
commit
e7e529ab99
@ -76,7 +76,7 @@ namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
|||||||
addJudgement(playfield, HitResult.Miss);
|
addJudgement(playfield, HitResult.Miss);
|
||||||
});
|
});
|
||||||
|
|
||||||
AddUntilStep("Wait for fail state", () => mascots.Where(d => d != null).All(d => d.State == TaikoMascotAnimationState.Fail));
|
AddUntilStep("Wait for fail state", () => mascots.All(d => d.State == TaikoMascotAnimationState.Fail));
|
||||||
|
|
||||||
AddStep("Create hit (great)", () =>
|
AddStep("Create hit (great)", () =>
|
||||||
{
|
{
|
||||||
@ -84,7 +84,7 @@ namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
|||||||
addJudgement(playfield, HitResult.Great);
|
addJudgement(playfield, HitResult.Great);
|
||||||
});
|
});
|
||||||
|
|
||||||
AddUntilStep("Wait for idle state", () => mascots.Where(d => d != null).All(d => d.State == TaikoMascotAnimationState.Idle));
|
AddUntilStep("Wait for idle state", () => mascots.All(d => d.State == TaikoMascotAnimationState.Idle));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@ -105,7 +105,7 @@ namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
AddUntilStep("Wait for fail state", () => mascots.Where(d => d != null).All(d => d.State == TaikoMascotAnimationState.Fail));
|
AddUntilStep("Wait for fail state", () => mascots.All(d => d.State == TaikoMascotAnimationState.Fail));
|
||||||
|
|
||||||
AddStep("Create hit (great)", () =>
|
AddStep("Create hit (great)", () =>
|
||||||
{
|
{
|
||||||
@ -113,7 +113,7 @@ namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
|||||||
addJudgement(playfield, HitResult.Great);
|
addJudgement(playfield, HitResult.Great);
|
||||||
});
|
});
|
||||||
|
|
||||||
AddUntilStep("Wait for kiai state", () => mascots.Where(d => d != null).All(d => d.State == TaikoMascotAnimationState.Kiai));
|
AddUntilStep("Wait for kiai state", () => mascots.All(d => d.State == TaikoMascotAnimationState.Kiai));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setBeatmap(bool kiai = false)
|
private void setBeatmap(bool kiai = false)
|
||||||
|
Loading…
Reference in New Issue
Block a user