mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00: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()));
|
||||
|
||||
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", () =>
|
||||
{
|
||||
@ -229,7 +229,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user