2018-01-10 13:52:22 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2018-01-10 15:58:20 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2018-01-10 13:52:22 +08:00
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets.Catch.Objects;
|
2018-01-10 15:58:20 +08:00
|
|
|
|
using osu.Game.Rulesets.Catch.Objects.Drawable;
|
|
|
|
|
using osu.Game.Rulesets.Catch.UI;
|
2018-01-10 13:52:22 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Catch.Tests
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
[Ignore("getting CI working")]
|
|
|
|
|
public class TestCaseBananaShower : Game.Tests.Visual.TestCasePlayer
|
|
|
|
|
{
|
2018-01-10 15:58:20 +08:00
|
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
|
|
|
{
|
|
|
|
|
typeof(BananaShower),
|
|
|
|
|
typeof(DrawableBananaShower),
|
|
|
|
|
|
|
|
|
|
typeof(CatchRuleset),
|
|
|
|
|
typeof(CatchRulesetContainer),
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-10 13:52:22 +08:00
|
|
|
|
public TestCaseBananaShower()
|
2018-01-10 15:58:20 +08:00
|
|
|
|
: base(new CatchRuleset())
|
2018-01-10 13:52:22 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override Beatmap CreateBeatmap()
|
|
|
|
|
{
|
|
|
|
|
var beatmap = new Beatmap
|
|
|
|
|
{
|
|
|
|
|
BeatmapInfo = new BeatmapInfo
|
|
|
|
|
{
|
|
|
|
|
BaseDifficulty = new BeatmapDifficulty
|
|
|
|
|
{
|
|
|
|
|
CircleSize = 6,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-12 20:46:57 +08:00
|
|
|
|
beatmap.HitObjects.Add(new BananaShower { StartTime = 200, Duration = 5000, NewCombo = true });
|
2018-01-10 13:52:22 +08:00
|
|
|
|
|
|
|
|
|
return beatmap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|