mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 06:52:59 +08:00
fix warnings
This commit is contained in:
parent
e3b4483872
commit
d26e677bb7
@ -71,7 +71,7 @@ namespace osu.Game.Rulesets.Catch.Tests.Editor
|
|||||||
AddClickStep(MouseButton.Left);
|
AddClickStep(MouseButton.Left);
|
||||||
AddClickStep(MouseButton.Right);
|
AddClickStep(MouseButton.Right);
|
||||||
AddAssert("banana shower is not placed", () => LastObject == null);
|
AddAssert("banana shower is not placed", () => LastObject == null);
|
||||||
AddAssert("state is waiting", () => CurrentBlueprint?.PlacementActive == HitObjectPlacementBlueprint.PlacementState.Waiting);
|
AddAssert("state is waiting", () => CurrentBlueprint?.PlacementActive == PlacementBlueprint.PlacementState.Waiting);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -168,7 +168,7 @@ namespace osu.Game.Rulesets.Catch.Edit
|
|||||||
if (EditorBeatmap.PlacementObject.Value is JuiceStream)
|
if (EditorBeatmap.PlacementObject.Value is JuiceStream)
|
||||||
{
|
{
|
||||||
// Juice stream path is not subject to snapping.
|
// Juice stream path is not subject to snapping.
|
||||||
if (BlueprintContainer.CurrentPlacement.PlacementActive is HitObjectPlacementBlueprint.PlacementState.Active)
|
if (BlueprintContainer.CurrentPlacement.PlacementActive is PlacementBlueprint.PlacementState.Active)
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ namespace osu.Game.Tests.Visual.Editing
|
|||||||
AddAssert("editor is still current", () => Editor.IsCurrentScreen());
|
AddAssert("editor is still current", () => Editor.IsCurrentScreen());
|
||||||
AddAssert("slider not placed", () => EditorBeatmap.HitObjects.Count, () => Is.EqualTo(0));
|
AddAssert("slider not placed", () => EditorBeatmap.HitObjects.Count, () => Is.EqualTo(0));
|
||||||
AddAssert("no active placement", () => this.ChildrenOfType<ComposeBlueprintContainer>().Single().CurrentPlacement.PlacementActive,
|
AddAssert("no active placement", () => this.ChildrenOfType<ComposeBlueprintContainer>().Single().CurrentPlacement.PlacementActive,
|
||||||
() => Is.EqualTo(HitObjectPlacementBlueprint.PlacementState.Waiting));
|
() => Is.EqualTo(PlacementBlueprint.PlacementState.Waiting));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
Loading…
Reference in New Issue
Block a user