1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 07:22:55 +08:00

correct assertion logic

This commit is contained in:
tsunyoku 2022-07-17 23:53:35 +01:00
parent d17acd0f45
commit d1c60b5741

View File

@ -38,7 +38,7 @@ namespace osu.Game.Tests.Visual.Gameplay
{
var incompatibleMod = modInstances.First(m => incompatibleModType.IsInstanceOfType(m));
Assert.That(
incompatibleMod.IncompatibleMods.Contains(mod.GetType()),
incompatibleMod.IncompatibleMods.Any(m => m.IsInstanceOfType(mod)),
$"{mod} has {incompatibleMod} in it's incompatible mods, but {incompatibleMod} does not have {mod} in it's incompatible mods."
);
}