Test star rating display with multiple sizes

This commit is contained in:
Salman Ahmed 2021-07-17 05:48:38 +03:00
parent 14da5ab813
commit 0a8d37defa
1 changed files with 6 additions and 2 deletions

View File

@ -14,8 +14,10 @@ namespace osu.Game.Tests.Visual.UserInterface
{
public class TestSceneStarRatingDisplayV2 : OsuTestScene
{
[Test]
public void TestDisplay()
[TestCase(52f, 20f)]
[TestCase(52f, 16f)]
[TestCase(50f, 14f)]
public void TestDisplay(float width, float height)
{
AddStep("load displays", () =>
{
@ -37,6 +39,7 @@ public void TestDisplay()
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(width, height),
})
})
};
@ -52,6 +55,7 @@ public void TestChangingStarRatingDisplay()
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(52f, 20f),
});
AddRepeatStep("set random value", () =>