mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 20:53:00 +08:00
Apply assertion fix from review
This commit is contained in:
parent
4a34a5c738
commit
0479027f64
@ -142,16 +142,16 @@ namespace osu.Game.Tests.NonVisual
|
|||||||
{
|
{
|
||||||
Assert.AreEqual(expectedCombinations.Length, actualCombinations.Length);
|
Assert.AreEqual(expectedCombinations.Length, actualCombinations.Length);
|
||||||
|
|
||||||
foreach (Type[] expected in expectedCombinations)
|
Assert.Multiple(() =>
|
||||||
{
|
{
|
||||||
Type[] actualTypes = ModUtils.FlattenMods(actualCombinations).Select(m => m.GetType()).ToArray();
|
for (int i = 0; i < expectedCombinations.Length; ++i)
|
||||||
|
|
||||||
Assert.Multiple(() =>
|
|
||||||
{
|
{
|
||||||
foreach (var expectedType in expected)
|
Type[] expectedTypes = expectedCombinations[i];
|
||||||
Assert.Contains(expectedType, actualTypes);
|
Type[] actualTypes = ModUtils.FlattenMod(actualCombinations[i]).Select(m => m.GetType()).ToArray();
|
||||||
});
|
|
||||||
}
|
Assert.That(expectedTypes, Is.EquivalentTo(actualTypes));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ModA : Mod
|
private class ModA : Mod
|
||||||
|
Loading…
Reference in New Issue
Block a user