<commit_before>// Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using NUnit.Framework;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Screens.Select;

// Resolve these names to types because there is a Namespace called "Playlists" and "Multiplayer" which conflicts
using MultiplayerScreenAlias = osu.Game.Screens.OnlinePlay.Multiplayer.Multiplayer;
using PlaylistsScreenAlias = osu.Game.Screens.OnlinePlay.Playlists.Playlists;

namespace osu.Game.Tests.Visual.Multiplayer
{
    public class TestMultiplayerModLoading : OsuGameTestScene
    {

        [SetUp]
        public void SetUp() => Schedule(() =>
        {
            SelectedMods.Value = Array.Empty<Mod>();
        });


        /// <summary>
        /// This is a regression test that tests whether a singleplayer mod can transfer over to a multiplayer screen.
        /// It should not carry over from these screens, prevents regression on https://github.com/ppy/osu/pull/17352 
        /// </summary>
        [Test]
        public void TestSingleplayerModsDontCarryToMultiplayerScreens()
        {
            PushAndConfirm(() => new PlaySongSelect());

            // Select Mods while a "singleplayer" screen is active
            var osuAutomationMod = new OsuModAutoplay();
            var expectedMods = new[] { osuAutomationMod };

            AddStep("Toggle on the automation Mod.", () => { SelectedMods.Value = expectedMods; });
            AddAssert("", () => SelectedMods.Value == expectedMods);

            PushAndConfirm(() => new TestMultiplayerComponents());
            AddAssert("Mods are Empty After A Multiplayer Screen Loads", () => SelectedMods.Value.Count == 0);

            AddStep("Retoggle on the automation Mod.", () => { SelectedMods.Value = expectedMods; });
            AddAssert("", () => SelectedMods.Value == expectedMods);

            // TODO: Implement TestPlaylistComponents? 
            //PushAndConfirm(() => new TestPlaylistComponents());
            //AddAssert("Mods are Empty After Playlist Screen Loads", () => !SelectedMods.Value.Any());
        }
    }
}
<commit_msg>remove code from old incorrect test<commit_after>// Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using NUnit.Framework;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Screens.Select;

namespace osu.Game.Tests.Visual.Multiplayer
{
    public class TestMultiplayerModLoading : OsuGameTestScene
    {

        [SetUp]
        public void SetUp() => Schedule(() =>
        {
            SelectedMods.Value = Array.Empty<Mod>();
        });


        /// <summary>
        /// This is a regression test that tests whether a singleplayer mod can transfer over to a multiplayer screen.
        /// It should not carry over from these screens, prevents regression on https://github.com/ppy/osu/pull/17352 
        /// </summary>
        [Test]
        public void TestSingleplayerModsDontCarryToMultiplayerScreens()
        {
            PushAndConfirm(() => new PlaySongSelect());

            // Select Mods while a "singleplayer" screen is active
            var osuAutomationMod = new OsuModAutoplay();
            var expectedMods = new[] { osuAutomationMod };

            AddStep("Toggle on the automation Mod.", () => { SelectedMods.Value = expectedMods; });
            AddAssert("", () => SelectedMods.Value == expectedMods);

            PushAndConfirm(() => new TestMultiplayerComponents());
            AddAssert("Mods are Empty After A Multiplayer Screen Loads", () => SelectedMods.Value.Count == 0);

            AddStep("Retoggle on the automation Mod.", () => { SelectedMods.Value = expectedMods; });
            AddAssert("", () => SelectedMods.Value == expectedMods);

            // TODO: Implement TestPlaylistComponents? 
            //PushAndConfirm(() => new TestPlaylistComponents());
            //AddAssert("Mods are Empty After Playlist Screen Loads", () => !SelectedMods.Value.Any());
        }
    }
}

{'fraction_non_alphanumeric': 0.1161845565383696, 'fraction_numerical': 0.002868754482428879, 'mean_word_length': 2.683098591549296, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 35, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6719312', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1108, 'n_words': 325}