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

Isolate tests properly

This commit is contained in:
Bartłomiej Dach 2024-09-30 14:05:20 +02:00
parent e91c8fb4bd
commit 155d6e57be
No known key found for this signature in database

View File

@ -29,9 +29,10 @@ namespace osu.Game.Tests.Visual.UserInterface
private TestCancellableCommentEditor cancellableCommentEditor = null!; private TestCancellableCommentEditor cancellableCommentEditor = null!;
private DummyAPIAccess dummyAPI => (DummyAPIAccess)API; private DummyAPIAccess dummyAPI => (DummyAPIAccess)API;
[SetUp] [SetUpSteps]
public void SetUp() => Schedule(() => public void SetUpSteps()
Add(new FillFlowContainer {
AddStep("create content", () => Child = new FillFlowContainer
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
@ -44,7 +45,8 @@ namespace osu.Game.Tests.Visual.UserInterface
commentEditor = new TestCommentEditor(), commentEditor = new TestCommentEditor(),
cancellableCommentEditor = new TestCancellableCommentEditor() cancellableCommentEditor = new TestCancellableCommentEditor()
} }
})); });
}
[Test] [Test]
public void TestCommitViaKeyboard() public void TestCommitViaKeyboard()