Test setup

This commit is contained in:
vmaggioli 2021-01-21 11:54:26 -05:00
parent 5ee3a5f230
commit e4b59c7317
No known key found for this signature in database
GPG Key ID: 5E31099CCBAEA383
1 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Rulesets.Osu.Objects.Drawables;
using osu.Game.Screens.Edit.Compose.Components.Timeline;
using osuTK;
namespace osu.Game.Tests.Visual.Editing
{
public class TestSceneTimelineHitObjectBlueprint : TimelineTestScene
{
private Spinner spinner;
private TimelineHitObjectBlueprint blueprint;
public TestSceneTimelineHitObjectBlueprint()
{
var spinner = new Spinner
{
Position = new Vector2(256, 256),
StartTime = -1000,
EndTime = 2000
};
spinner.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty { CircleSize = 2 });
Add(new Container
{
RelativeSizeAxes = Axes.Both,
Size = new Vector2(0.5f),
Child = _ = new DrawableSpinner(spinner)
});
}
protected override void LoadComplete()
{
base.LoadComplete();
Clock.Seek(10000);
}
public override Drawable CreateTestComponent() => blueprint = new TimelineHitObjectBlueprint(spinner);
[Test]
public void TestDisallowZeroLengthSpinners()
{
}
}
}