2021-06-11 18:14:28 +08:00
|
|
|
// 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.Linq;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using osu.Game.Rulesets.Taiko.Mods;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Tests.Mods
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
public partial class TestSceneTaikoModHidden : TaikoModTestScene
|
2021-06-11 18:14:28 +08:00
|
|
|
{
|
|
|
|
[Test]
|
|
|
|
public void TestDefaultBeatmapTest() => CreateModTest(new ModTestData
|
|
|
|
{
|
|
|
|
Mod = new TaikoModHidden(),
|
|
|
|
Autoplay = true,
|
|
|
|
PassCondition = checkSomeAutoplayHits
|
|
|
|
});
|
|
|
|
|
|
|
|
private bool checkSomeAutoplayHits()
|
|
|
|
=> Player.ScoreProcessor.JudgedHits >= 4
|
|
|
|
&& Player.Results.All(result => result.Type == result.Judgement.MaxResult);
|
|
|
|
}
|
|
|
|
}
|