mirror of
https://github.com/ppy/osu
synced 2025-02-03 03:42:15 +00:00
Fix test scenes using framework-testing-specifc test scene
This commit is contained in:
parent
febf9adabd
commit
97076325c4
@ -4,13 +4,13 @@
|
|||||||
using System;
|
using System;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Testing;
|
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Beatmaps.ControlPoints;
|
using osu.Game.Beatmaps.ControlPoints;
|
||||||
using osu.Game.Rulesets.Osu.Objects;
|
using osu.Game.Rulesets.Osu.Objects;
|
||||||
using osu.Game.Rulesets.Osu.Objects.Drawables;
|
using osu.Game.Rulesets.Osu.Objects.Drawables;
|
||||||
using osu.Game.Rulesets.Scoring;
|
using osu.Game.Rulesets.Scoring;
|
||||||
using osu.Game.Skinning;
|
using osu.Game.Skinning;
|
||||||
|
using osu.Game.Tests.Visual;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Tests
|
namespace osu.Game.Rulesets.Osu.Tests
|
||||||
@ -22,30 +22,25 @@ namespace osu.Game.Rulesets.Osu.Tests
|
|||||||
private DrawableHitCircle.HitReceptor hitAreaReceptor => drawableHitCircle.HitArea;
|
private DrawableHitCircle.HitReceptor hitAreaReceptor => drawableHitCircle.HitArea;
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public new void SetUp()
|
public void SetUp() => Schedule(() =>
|
||||||
{
|
{
|
||||||
base.SetUp();
|
hitCircle = new HitCircle
|
||||||
|
|
||||||
Schedule(() =>
|
|
||||||
{
|
{
|
||||||
hitCircle = new HitCircle
|
Position = new Vector2(100, 100),
|
||||||
{
|
StartTime = Time.Current + 500
|
||||||
Position = new Vector2(100, 100),
|
};
|
||||||
StartTime = Time.Current + 500
|
|
||||||
};
|
|
||||||
|
|
||||||
hitCircle.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
hitCircle.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
||||||
|
|
||||||
Child = new SkinProvidingContainer(new DefaultSkin())
|
Child = new SkinProvidingContainer(new DefaultSkin())
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Child = drawableHitCircle = new DrawableHitCircle(hitCircle)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
Size = new Vector2(100)
|
||||||
Child = drawableHitCircle = new DrawableHitCircle(hitCircle)
|
}
|
||||||
{
|
};
|
||||||
Size = new Vector2(100)
|
});
|
||||||
}
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestCircleHitCentre()
|
public void TestCircleHitCentre()
|
||||||
|
Loading…
Reference in New Issue
Block a user