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
1 changed files with 18 additions and 4 deletions

View File

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