1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 21:42:55 +08:00

Apply assertion fix from review

This commit is contained in:
Dan Balasescu 2021-12-01 11:29:02 +09:00
parent 4a34a5c738
commit 0479027f64

View File

@ -142,16 +142,16 @@ namespace osu.Game.Tests.NonVisual
{
Assert.AreEqual(expectedCombinations.Length, actualCombinations.Length);
foreach (Type[] expected in expectedCombinations)
{
Type[] actualTypes = ModUtils.FlattenMods(actualCombinations).Select(m => m.GetType()).ToArray();
Assert.Multiple(() =>
{
foreach (var expectedType in expected)
Assert.Contains(expectedType, actualTypes);
});
for (int i = 0; i < expectedCombinations.Length; ++i)
{
Type[] expectedTypes = expectedCombinations[i];
Type[] actualTypes = ModUtils.FlattenMod(actualCombinations[i]).Select(m => m.GetType()).ToArray();
Assert.That(expectedTypes, Is.EquivalentTo(actualTypes));
}
});
}
private class ModA : Mod