mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Remove unnecessary linq count usage
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System.Linq;
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -62,7 +61,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
waitForCurrent();
|
waitForCurrent();
|
||||||
pushNext();
|
pushNext();
|
||||||
waitForCurrent();
|
waitForCurrent();
|
||||||
AddAssert(@"only 2 items", () => breadcrumbs.Items.Count() == 2);
|
AddAssert(@"only 2 items", () => breadcrumbs.Items.Count == 2);
|
||||||
AddStep(@"exit current", () => screenStack.CurrentScreen.Exit());
|
AddStep(@"exit current", () => screenStack.CurrentScreen.Exit());
|
||||||
AddAssert(@"current screen is first", () => startScreen == screenStack.CurrentScreen);
|
AddAssert(@"current screen is first", () => startScreen == screenStack.CurrentScreen);
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
|
|
||||||
AddStep("Select random", () =>
|
AddStep("Select random", () =>
|
||||||
{
|
{
|
||||||
selector.Current.Value = selector.Items.ElementAt(RNG.Next(selector.Items.Count()));
|
selector.Current.Value = selector.Items.ElementAt(RNG.Next(selector.Items.Count));
|
||||||
});
|
});
|
||||||
AddStep("Toggle disabled state", () => selector.Current.Disabled = !selector.Current.Disabled);
|
AddStep("Toggle disabled state", () => selector.Current.Disabled = !selector.Current.Disabled);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user