1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

add message to Assert.That

This commit is contained in:
tsunyoku 2022-07-17 23:16:27 +01:00
parent 92513dc936
commit d17acd0f45

View File

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