mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 16:12:57 +08:00
Add test case for fading hold note
This commit is contained in:
parent
2f33aeac9f
commit
2ccc81ccc0
@ -1,6 +1,7 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Bindables;
|
||||
@ -26,6 +27,18 @@ namespace osu.Game.Rulesets.Mania.Tests.Skinning
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestFadeOnMiss()
|
||||
{
|
||||
AddStep("miss tick", () =>
|
||||
{
|
||||
foreach (var holdNote in holdNotes)
|
||||
holdNote.ChildrenOfType<DrawableHoldNoteHead>().First().MissForcefully();
|
||||
});
|
||||
}
|
||||
|
||||
private IEnumerable<DrawableHoldNote> holdNotes => CreatedDrawables.SelectMany(d => d.ChildrenOfType<DrawableHoldNote>());
|
||||
|
||||
protected override DrawableManiaHitObject CreateHitObject()
|
||||
{
|
||||
var note = new HoldNote { Duration = 1000 };
|
||||
|
Loading…
Reference in New Issue
Block a user