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:
parent
d17acd0f45
commit
d1c60b5741
@ -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."
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user