2017-12-01 19:31:54 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
2017-12-01 14:08:12 +08:00
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets.Catch.Objects;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Catch.Tests
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
[Ignore("getting CI working")]
|
|
|
|
|
public class TestCaseHyperdash : Game.Tests.Visual.TestCasePlayer
|
|
|
|
|
{
|
|
|
|
|
public TestCaseHyperdash()
|
|
|
|
|
: base(typeof(CatchRuleset))
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override Beatmap CreateBeatmap()
|
|
|
|
|
{
|
|
|
|
|
var beatmap = new Beatmap();
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 512; i++)
|
2017-12-01 19:13:32 +08:00
|
|
|
|
if (i % 5 < 3)
|
|
|
|
|
beatmap.HitObjects.Add(new Fruit { X = i % 10 < 5 ? 0.02f : 0.98f, StartTime = i * 100, NewCombo = i % 8 == 0 });
|
2017-12-01 14:08:12 +08:00
|
|
|
|
|
|
|
|
|
return beatmap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|