mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 00:53:19 +08:00
Use Single() instead of First() where applicable
This commit is contained in:
parent
e0eece11b1
commit
13df0783fe
@ -220,7 +220,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
|||||||
|
|
||||||
AddStep("load results", () => Child = new TestResultsContainer(screen = createResultsScreen()));
|
AddStep("load results", () => Child = new TestResultsContainer(screen = createResultsScreen()));
|
||||||
|
|
||||||
AddAssert("download button is disabled", () => !screen.ChildrenOfType<DownloadButton>().First().Enabled.Value);
|
AddAssert("download button is disabled", () => !screen.ChildrenOfType<DownloadButton>().Single().Enabled.Value);
|
||||||
|
|
||||||
AddStep("click contracted panel", () =>
|
AddStep("click contracted panel", () =>
|
||||||
{
|
{
|
||||||
@ -229,7 +229,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
|||||||
InputManager.Click(MouseButton.Left);
|
InputManager.Click(MouseButton.Left);
|
||||||
});
|
});
|
||||||
|
|
||||||
AddAssert("download button is enabled", () => screen.ChildrenOfType<DownloadButton>().First().Enabled.Value);
|
AddAssert("download button is enabled", () => screen.ChildrenOfType<DownloadButton>().Single().Enabled.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class TestResultsContainer : Container
|
private class TestResultsContainer : Container
|
||||||
|
Loading…
Reference in New Issue
Block a user