mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 13:47:24 +08:00
Fix LegacyBeatmapEncoderTest
swapping expected/actual values around
Was making test output look confusing.
This commit is contained in:
parent
48ce4fdd16
commit
0e8dce5527
@ -120,11 +120,11 @@ namespace osu.Game.Tests.Beatmaps.Formats
|
|||||||
private void compareBeatmaps((IBeatmap beatmap, TestLegacySkin skin) expected, (IBeatmap beatmap, TestLegacySkin skin) actual)
|
private void compareBeatmaps((IBeatmap beatmap, TestLegacySkin skin) expected, (IBeatmap beatmap, TestLegacySkin skin) actual)
|
||||||
{
|
{
|
||||||
// Check all control points that are still considered to be at a global level.
|
// Check all control points that are still considered to be at a global level.
|
||||||
Assert.That(expected.beatmap.ControlPointInfo.TimingPoints.Serialize(), Is.EqualTo(actual.beatmap.ControlPointInfo.TimingPoints.Serialize()));
|
Assert.That(actual.beatmap.ControlPointInfo.TimingPoints.Serialize(), Is.EqualTo(expected.beatmap.ControlPointInfo.TimingPoints.Serialize()));
|
||||||
Assert.That(expected.beatmap.ControlPointInfo.EffectPoints.Serialize(), Is.EqualTo(actual.beatmap.ControlPointInfo.EffectPoints.Serialize()));
|
Assert.That(actual.beatmap.ControlPointInfo.EffectPoints.Serialize(), Is.EqualTo(expected.beatmap.ControlPointInfo.EffectPoints.Serialize()));
|
||||||
|
|
||||||
// Check all hitobjects.
|
// Check all hitobjects.
|
||||||
Assert.That(expected.beatmap.HitObjects.Serialize(), Is.EqualTo(actual.beatmap.HitObjects.Serialize()));
|
Assert.That(actual.beatmap.HitObjects.Serialize(), Is.EqualTo(expected.beatmap.HitObjects.Serialize()));
|
||||||
|
|
||||||
// Check skin.
|
// Check skin.
|
||||||
Assert.IsTrue(areComboColoursEqual(expected.skin.Configuration, actual.skin.Configuration));
|
Assert.IsTrue(areComboColoursEqual(expected.skin.Configuration, actual.skin.Configuration));
|
||||||
|
Loading…
Reference in New Issue
Block a user