1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

Fix duplicate code in unsnap test

This commit is contained in:
Naxess 2021-04-26 17:44:46 +02:00
parent 9b9c473616
commit 71f880aa94

View File

@ -70,14 +70,9 @@ namespace osu.Game.Tests.Editing.Checks
public void TestSliderSnapped()
{
// Slider ends are naturally < 1 ms unsnapped because of how SV works.
var mockSlider = new Mock<Slider>();
mockSlider.SetupGet(s => s.StartTime).Returns(100);
mockSlider.As<IHasRepeats>().Setup(r => r.RepeatCount).Returns(0);
mockSlider.As<IHasDuration>().Setup(d => d.Duration).Returns(400.75d);
assertOk(new List<HitObject>
{
mockSlider.Object
getSliderMock(startTime: 100, endTime: 400.75d).Object
});
}