1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 15:26:07 +08:00

Add failing test case

This commit is contained in:
Bartłomiej Dach 2023-01-18 21:42:22 +01:00
parent 06212bca51
commit 7299d227d1
No known key found for this signature in database

View File

@ -126,6 +126,16 @@ namespace osu.Game.Tests.Visual.Gameplay
AddStep("Show max judgement", () => counterDisplay.ShowMaxJudgement.Value = true); AddStep("Show max judgement", () => counterDisplay.ShowMaxJudgement.Value = true);
} }
[Test]
public void TestMaxValueStartsHidden()
{
AddStep("create counter", () => Child = counterDisplay = new TestJudgementCounterDisplay
{
ShowMaxJudgement = { Value = false }
});
AddAssert("Check max hidden", () => counterDisplay.CounterFlow.ChildrenOfType<JudgementCounter>().First().Alpha == 0);
}
[Test] [Test]
public void TestCycleDisplayModes() public void TestCycleDisplayModes()
{ {