1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-26 06:02:59 +08:00

Fix test not working for droplets/tinydroplets

This commit is contained in:
smoogipoo 2020-08-20 23:15:30 +09:00
parent 3ecc47cd3e
commit a193fb7907

View File

@ -30,9 +30,8 @@ namespace osu.Game.Rulesets.Catch.Tests
private Drawable createDrawableTinyDroplet() private Drawable createDrawableTinyDroplet()
{ {
var droplet = new TinyDroplet var droplet = new TestCatchTinyDroplet
{ {
StartTime = Clock.CurrentTime,
Scale = 1.5f, Scale = 1.5f,
}; };
@ -49,9 +48,8 @@ namespace osu.Game.Rulesets.Catch.Tests
private Drawable createDrawableDroplet() private Drawable createDrawableDroplet()
{ {
var droplet = new Droplet var droplet = new TestCatchDroplet
{ {
StartTime = Clock.CurrentTime,
Scale = 1.5f, Scale = 1.5f,
}; };
@ -95,5 +93,21 @@ namespace osu.Game.Rulesets.Catch.Tests
public override FruitVisualRepresentation VisualRepresentation { get; } public override FruitVisualRepresentation VisualRepresentation { get; }
} }
public class TestCatchDroplet : Droplet
{
public TestCatchDroplet()
{
StartTime = 1000000000000;
}
}
public class TestCatchTinyDroplet : TinyDroplet
{
public TestCatchTinyDroplet()
{
StartTime = 1000000000000;
}
}
} }
} }