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

Make tests actually show what value they are testing

This commit is contained in:
Dean Herbert 2024-08-05 17:01:00 +09:00
parent 9c5e29b2c9
commit 24a0ead62e
No known key found for this signature in database

View File

@ -60,10 +60,10 @@ namespace osu.Game.Tests.Visual.UserInterface
};
});
[Test]
public void TestTooltipBasic([Values(0, 1, 2)] int index)
[TestCaseSource(nameof(test_case_tooltip_string))]
public void TestTooltipBasic(string text)
{
AddStep("Set tooltip content", () => container.TooltipText = test_case_tooltip_string[index]);
AddStep("Set tooltip content", () => container.TooltipText = text);
AddStep("Move mouse to container", () => InputManager.MoveMouseTo(new Vector2(InputManager.ScreenSpaceDrawQuad.Centre.X, InputManager.ScreenSpaceDrawQuad.Centre.Y)));