mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 22:22:55 +08:00
Don't use GetDecoder
This commit is contained in:
parent
cd6fe91882
commit
a5c17ae26d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user