mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 02:27:19 +08:00
Rename testcases
This commit is contained in:
parent
bd775af274
commit
b3fa7c111b
@ -11,7 +11,7 @@ using osu.Game.Tests.Visual;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Tests
|
namespace osu.Game.Rulesets.Osu.Tests
|
||||||
{
|
{
|
||||||
public class TestCaseHitCirclePlacementMask : HitObjectPlacementMaskTestCase
|
public class TestCaseHitCirclePlacementBlueprint : PlacementBlueprintTestCase
|
||||||
{
|
{
|
||||||
protected override DrawableHitObject CreateHitObject(HitObject hitObject) => new DrawableHitCircle((HitCircle)hitObject);
|
protected override DrawableHitObject CreateHitObject(HitObject hitObject) => new DrawableHitCircle((HitCircle)hitObject);
|
||||||
protected override PlacementBlueprint CreateMask() => new HitCirclePlacementBlueprint();
|
protected override PlacementBlueprint CreateMask() => new HitCirclePlacementBlueprint();
|
@ -12,11 +12,11 @@ using OpenTK;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Tests
|
namespace osu.Game.Rulesets.Osu.Tests
|
||||||
{
|
{
|
||||||
public class TestCaseHitCircleSelectionMask : HitObjectSelectionMaskTestCase
|
public class TestCaseHitCircleSelectionBlueprint : SelectionBlueprintTestCase
|
||||||
{
|
{
|
||||||
private readonly DrawableHitCircle drawableObject;
|
private readonly DrawableHitCircle drawableObject;
|
||||||
|
|
||||||
public TestCaseHitCircleSelectionMask()
|
public TestCaseHitCircleSelectionBlueprint()
|
||||||
{
|
{
|
||||||
var hitCircle = new HitCircle { Position = new Vector2(256, 192) };
|
var hitCircle = new HitCircle { Position = new Vector2(256, 192) };
|
||||||
hitCircle.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty { CircleSize = 2 });
|
hitCircle.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty { CircleSize = 2 });
|
@ -11,7 +11,7 @@ using osu.Game.Tests.Visual;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Tests
|
namespace osu.Game.Rulesets.Osu.Tests
|
||||||
{
|
{
|
||||||
public class TestCaseSliderPlacementMask : HitObjectPlacementMaskTestCase
|
public class TestCaseSliderPlacementBlueprint : PlacementBlueprintTestCase
|
||||||
{
|
{
|
||||||
protected override DrawableHitObject CreateHitObject(HitObject hitObject) => new DrawableSlider((Slider)hitObject);
|
protected override DrawableHitObject CreateHitObject(HitObject hitObject) => new DrawableSlider((Slider)hitObject);
|
||||||
protected override PlacementBlueprint CreateMask() => new SliderPlacementBlueprint();
|
protected override PlacementBlueprint CreateMask() => new SliderPlacementBlueprint();
|
@ -16,7 +16,7 @@ using OpenTK;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Tests
|
namespace osu.Game.Rulesets.Osu.Tests
|
||||||
{
|
{
|
||||||
public class TestCaseSliderSelectionMask : HitObjectSelectionMaskTestCase
|
public class TestCaseSliderSelectionBlueprint : SelectionBlueprintTestCase
|
||||||
{
|
{
|
||||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
{
|
{
|
||||||
@ -30,7 +30,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
|||||||
|
|
||||||
private readonly DrawableSlider drawableObject;
|
private readonly DrawableSlider drawableObject;
|
||||||
|
|
||||||
public TestCaseSliderSelectionMask()
|
public TestCaseSliderSelectionBlueprint()
|
||||||
{
|
{
|
||||||
var slider = new Slider
|
var slider = new Slider
|
||||||
{
|
{
|
@ -11,7 +11,7 @@ using osu.Game.Tests.Visual;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Tests
|
namespace osu.Game.Rulesets.Osu.Tests
|
||||||
{
|
{
|
||||||
public class TestCaseSpinnerPlacementMask : HitObjectPlacementMaskTestCase
|
public class TestCaseSpinnerPlacementBlueprint : PlacementBlueprintTestCase
|
||||||
{
|
{
|
||||||
protected override DrawableHitObject CreateHitObject(HitObject hitObject) => new DrawableSpinner((Spinner)hitObject);
|
protected override DrawableHitObject CreateHitObject(HitObject hitObject) => new DrawableSpinner((Spinner)hitObject);
|
||||||
|
|
@ -17,7 +17,7 @@ using OpenTK;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Tests
|
namespace osu.Game.Rulesets.Osu.Tests
|
||||||
{
|
{
|
||||||
public class TestCaseSpinnerSelectionMask : HitObjectSelectionMaskTestCase
|
public class TestCaseSpinnerSelectionBlueprint : SelectionBlueprintTestCase
|
||||||
{
|
{
|
||||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
{
|
{
|
||||||
@ -27,7 +27,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
|||||||
|
|
||||||
private readonly DrawableSpinner drawableSpinner;
|
private readonly DrawableSpinner drawableSpinner;
|
||||||
|
|
||||||
public TestCaseSpinnerSelectionMask()
|
public TestCaseSpinnerSelectionBlueprint()
|
||||||
{
|
{
|
||||||
var spinner = new Spinner
|
var spinner = new Spinner
|
||||||
{
|
{
|
@ -13,12 +13,12 @@ using osu.Game.Screens.Edit.Screens.Compose;
|
|||||||
namespace osu.Game.Tests.Visual
|
namespace osu.Game.Tests.Visual
|
||||||
{
|
{
|
||||||
[Cached(Type = typeof(IPlacementHandler))]
|
[Cached(Type = typeof(IPlacementHandler))]
|
||||||
public abstract class HitObjectPlacementMaskTestCase : OsuTestCase, IPlacementHandler
|
public abstract class PlacementBlueprintTestCase : OsuTestCase, IPlacementHandler
|
||||||
{
|
{
|
||||||
private readonly Container hitObjectContainer;
|
private readonly Container hitObjectContainer;
|
||||||
private PlacementBlueprint currentBlueprint;
|
private PlacementBlueprint currentBlueprint;
|
||||||
|
|
||||||
protected HitObjectPlacementMaskTestCase()
|
protected PlacementBlueprintTestCase()
|
||||||
{
|
{
|
||||||
Beatmap.Value.BeatmapInfo.BaseDifficulty.CircleSize = 2;
|
Beatmap.Value.BeatmapInfo.BaseDifficulty.CircleSize = 2;
|
||||||
|
|
@ -10,14 +10,14 @@ using osu.Game.Rulesets.Edit;
|
|||||||
|
|
||||||
namespace osu.Game.Tests.Visual
|
namespace osu.Game.Tests.Visual
|
||||||
{
|
{
|
||||||
public abstract class HitObjectSelectionMaskTestCase : OsuTestCase
|
public abstract class SelectionBlueprintTestCase : OsuTestCase
|
||||||
{
|
{
|
||||||
private SelectionBlueprint blueprint;
|
private SelectionBlueprint blueprint;
|
||||||
|
|
||||||
protected override Container<Drawable> Content => content ?? base.Content;
|
protected override Container<Drawable> Content => content ?? base.Content;
|
||||||
private readonly Container content;
|
private readonly Container content;
|
||||||
|
|
||||||
protected HitObjectSelectionMaskTestCase()
|
protected SelectionBlueprintTestCase()
|
||||||
{
|
{
|
||||||
base.Content.Add(content = new Container
|
base.Content.Add(content = new Container
|
||||||
{
|
{
|
Loading…
x
Reference in New Issue
Block a user