mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 11:12:59 +08:00
Add test coverage for parsing new online ID
This commit is contained in:
parent
2ba02416c2
commit
dbb69419e6
@ -101,6 +101,20 @@ namespace osu.Game.Tests.Beatmaps.Formats
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestDecodeNewOnlineID()
|
||||||
|
{
|
||||||
|
var decoder = new TestLegacyScoreDecoder();
|
||||||
|
|
||||||
|
using (var resourceStream = TestResources.OpenResource("Replays/taiko-replay-with-new-online-id.osr"))
|
||||||
|
{
|
||||||
|
var score = decoder.Parse(resourceStream);
|
||||||
|
|
||||||
|
Assert.That(score.ScoreInfo.OnlineID, Is.EqualTo(258));
|
||||||
|
Assert.That(score.ScoreInfo.LegacyOnlineID, Is.EqualTo(-1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[TestCase(3, true)]
|
[TestCase(3, true)]
|
||||||
[TestCase(6, false)]
|
[TestCase(6, false)]
|
||||||
[TestCase(LegacyBeatmapDecoder.LATEST_VERSION, false)]
|
[TestCase(LegacyBeatmapDecoder.LATEST_VERSION, false)]
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user