mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Fix failing test scenes
This commit is contained in:
@ -134,18 +134,6 @@ namespace osu.Game.Tests.Mods
|
|||||||
|
|
||||||
private static readonly object[] invalid_mod_test_scenarios =
|
private static readonly object[] invalid_mod_test_scenarios =
|
||||||
{
|
{
|
||||||
// incompatible pair.
|
|
||||||
new object[]
|
|
||||||
{
|
|
||||||
new Mod[] { new OsuModDoubleTime(), new OsuModHalfTime() },
|
|
||||||
new[] { typeof(OsuModDoubleTime), typeof(OsuModHalfTime) }
|
|
||||||
},
|
|
||||||
// incompatible pair with derived class.
|
|
||||||
new object[]
|
|
||||||
{
|
|
||||||
new Mod[] { new OsuModNightcore(), new OsuModHalfTime() },
|
|
||||||
new[] { typeof(OsuModNightcore), typeof(OsuModHalfTime) }
|
|
||||||
},
|
|
||||||
// system mod.
|
// system mod.
|
||||||
new object[]
|
new object[]
|
||||||
{
|
{
|
||||||
|
@ -106,7 +106,7 @@ namespace osu.Game.Utils
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check the provided combination of mods are valid for a local gameplay session.
|
/// Checks that all <see cref="Mod"/>s in a combination are valid for a local gameplay session.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="mods">The mods to check.</param>
|
/// <param name="mods">The mods to check.</param>
|
||||||
/// <param name="invalidMods">Invalid mods, if any were found. Will be null if all mods were valid.</param>
|
/// <param name="invalidMods">Invalid mods, if any were found. Will be null if all mods were valid.</param>
|
||||||
@ -115,7 +115,7 @@ namespace osu.Game.Utils
|
|||||||
=> checkValid(mods, m => m.Type != ModType.System && m.HasImplementation && !(m is MultiMod), out invalidMods);
|
=> checkValid(mods, m => m.Type != ModType.System && m.HasImplementation && !(m is MultiMod), out invalidMods);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check the provided combination of mods are valid as "required mods" in a multiplayer match session.
|
/// Checks that all <see cref="Mod"/>s in a combination are valid as "required mods" in a multiplayer match session.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="mods">The mods to check.</param>
|
/// <param name="mods">The mods to check.</param>
|
||||||
/// <param name="invalidMods">Invalid mods, if any were found. Will be null if all mods were valid.</param>
|
/// <param name="invalidMods">Invalid mods, if any were found. Will be null if all mods were valid.</param>
|
||||||
@ -124,7 +124,7 @@ namespace osu.Game.Utils
|
|||||||
=> checkValid(mods, m => m.IsPlayable(ModUsage.MultiplayerRoomWide), out invalidMods);
|
=> checkValid(mods, m => m.IsPlayable(ModUsage.MultiplayerRoomWide), out invalidMods);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check the provided combination of mods are valid as "free mods" in a multiplayer match session.
|
/// Checks that all <see cref="Mod"/>s in a combination are valid as "free mods" in a multiplayer match session.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="mods">The mods to check.</param>
|
/// <param name="mods">The mods to check.</param>
|
||||||
/// <param name="invalidMods">Invalid mods, if any were found. Will be null if all mods were valid.</param>
|
/// <param name="invalidMods">Invalid mods, if any were found. Will be null if all mods were valid.</param>
|
||||||
|
Reference in New Issue
Block a user