mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +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]
|
[Test]
|
||||||
public void TestDecodeInvalidEvents()
|
public void TestDecodeInvalidEvents()
|
||||||
{
|
{
|
||||||
|
var decoder = new LegacyBeatmapDecoder { ApplyOffsets = false };
|
||||||
|
|
||||||
using (var normalResStream = TestResources.OpenResource("Soleily - Renatus (Gamu) [Insane].osu"))
|
using (var normalResStream = TestResources.OpenResource("Soleily - Renatus (Gamu) [Insane].osu"))
|
||||||
using (var normalStream = new StreamReader(normalResStream))
|
using (var normalStream = new StreamReader(normalResStream))
|
||||||
using (var resStream = TestResources.OpenResource("invalid-events.osu"))
|
using (var resStream = TestResources.OpenResource("invalid-events.osu"))
|
||||||
using (var stream = new StreamReader(resStream))
|
using (var stream = new StreamReader(resStream))
|
||||||
{
|
{
|
||||||
var decoder = Decoder.GetDecoder<Beatmap>(stream);
|
|
||||||
var goodBeatmap = decoder.Decode(normalStream);
|
var goodBeatmap = decoder.Decode(normalStream);
|
||||||
Beatmap badBeatmap = null;
|
Beatmap badBeatmap = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user