mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:57:24 +08:00
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
// 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 NUnit.Framework;
|
|
using osu.Game.Rulesets.Mania.Beatmaps;
|
|
using osu.Game.Rulesets.Mania.Objects;
|
|
using osu.Game.Tests.Visual;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Tests.Mods
|
|
{
|
|
public partial class TestSceneManiaModAutoplay : ModTestScene
|
|
{
|
|
protected override Ruleset CreatePlayerRuleset() => new ManiaRuleset();
|
|
|
|
[Test]
|
|
public void TestPerfectScoreOnShortHoldNote()
|
|
{
|
|
CreateModTest(new ModTestData
|
|
{
|
|
Autoplay = true,
|
|
Beatmap = new ManiaBeatmap(new StageDefinition(1))
|
|
{
|
|
HitObjects = new List<ManiaHitObject>
|
|
{
|
|
new HoldNote
|
|
{
|
|
StartTime = 100,
|
|
EndTime = 100,
|
|
},
|
|
new HoldNote
|
|
{
|
|
StartTime = 100.1,
|
|
EndTime = 150,
|
|
},
|
|
}
|
|
},
|
|
PassCondition = () => Player.ScoreProcessor.Combo.Value == 4
|
|
});
|
|
}
|
|
}
|
|
}
|