Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ppy
GitHub Repository: ppy/osu
Path: blob/master/osu.Game.Tests/Visual/UserInterface/TestSceneLabelledDropdown.cs
4378 views
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Graphics.UserInterfaceV2;

namespace osu.Game.Tests.Visual.UserInterface
{
    public partial class TestSceneLabelledDropdown : OsuTestScene
    {
        [Test]
        public void TestLabelledDropdown()
            => AddStep(@"create dropdown", () => Child = new LabelledDropdown<string>(true)
            {
                Label = @"Countdown speed",
                Items = new[]
                {
                    @"Half",
                    @"Normal",
                    @"Double"
                },
                Description = @"This is a description"
            });

        [Test]
        public void TestLabelledEnumDropdown()
            => AddStep(@"create dropdown", () => Child = new LabelledEnumDropdown<BeatmapOnlineStatus>(true)
            {
                Label = @"Beatmap status",
                Description = @"This is a description"
            });
    }
}