1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Don't use GetDecoder

This commit is contained in:
David Zhao 2019-08-06 10:14:36 +09:00
parent cd6fe91882
commit a5c17ae26d

View File

@ -486,12 +486,13 @@ namespace osu.Game.Tests.Beatmaps.Formats
[Test]
public void TestDecodeInvalidEvents()
{
var decoder = new LegacyBeatmapDecoder { ApplyOffsets = false };
using (var normalResStream = TestResources.OpenResource("Soleily - Renatus (Gamu) [Insane].osu"))
using (var normalStream = new StreamReader(normalResStream))
using (var resStream = TestResources.OpenResource("invalid-events.osu"))
using (var stream = new StreamReader(resStream))
{
var decoder = Decoder.GetDecoder<Beatmap>(stream);
var goodBeatmap = decoder.Decode(normalStream);
Beatmap badBeatmap = null;