mirror of https://github.com/ppy/osu
Fix property name
This commit is contained in:
parent
28994166bc
commit
cd70673463
|
@ -1,7 +1,6 @@
|
||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Framework.Utils;
|
using osu.Framework.Utils;
|
||||||
|
@ -45,7 +44,7 @@ private static PathControlPoint[] createPathSegment(PathType type, params Vector
|
||||||
}).ToArray();
|
}).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
private Slider SelectedSlider => (Slider)EditorBeatmap.SelectedHitObjects[0];
|
private Slider selectedSlider => (Slider)EditorBeatmap.SelectedHitObjects[0];
|
||||||
|
|
||||||
[TestCase(0, 250)]
|
[TestCase(0, 250)]
|
||||||
[TestCase(0, 200)]
|
[TestCase(0, 200)]
|
||||||
|
@ -91,13 +90,13 @@ public void TestSliderReversal(int pathIndex, double length)
|
||||||
});
|
});
|
||||||
|
|
||||||
AddAssert("Slider has correct length", () =>
|
AddAssert("Slider has correct length", () =>
|
||||||
Precision.AlmostEquals(SelectedSlider.Path.Distance, oldDistance));
|
Precision.AlmostEquals(selectedSlider.Path.Distance, oldDistance));
|
||||||
|
|
||||||
AddAssert("Slider has correct start position", () =>
|
AddAssert("Slider has correct start position", () =>
|
||||||
Vector2.Distance(SelectedSlider.Position, oldEndPos) < 1);
|
Vector2.Distance(selectedSlider.Position, oldEndPos) < 1);
|
||||||
|
|
||||||
AddAssert("Slider has correct end position", () =>
|
AddAssert("Slider has correct end position", () =>
|
||||||
Vector2.Distance(SelectedSlider.EndPosition, oldStartPos) < 1);
|
Vector2.Distance(selectedSlider.EndPosition, oldStartPos) < 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue