mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 12:42:54 +08:00
25 lines
775 B
C#
25 lines
775 B
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.Linq;
|
|
using NUnit.Framework;
|
|
using osu.Game.Rulesets.Taiko.Mods;
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Tests.Mods
|
|
{
|
|
public class TestSceneTaikoModHidden : TaikoModTestScene
|
|
{
|
|
[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);
|
|
}
|
|
}
|