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

Make sure clipboard is cleared before each test

This commit is contained in:
Marvin 2024-03-29 15:27:46 +01:00
parent 9adb9dd5f8
commit b2d17715b3

View File

@ -34,6 +34,14 @@ namespace osu.Game.Tests.Visual.Editing
[Resolved]
private Clipboard hostClipboard { get; set; } = null!;
public override void SetUpSteps()
{
base.SetUpSteps();
// writing arbitrary value to the clipboard to make sure the clipboard contains no hitobects before each test
AddStep("clear clipboard", () => hostClipboard.SetText("dummy text"));
}
[Test]
public void TestCutRemovesObjects()
{