mirror of
https://github.com/ppy/osu.git
synced 2025-01-21 20:33:01 +08:00
Fix only single beatmap being tested
This commit is contained in:
parent
9713d90388
commit
8ea76244a2
@ -23,14 +23,12 @@ namespace osu.Game.Tests.Beatmaps.Formats
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class LegacyBeatmapEncoderTest
|
public class LegacyBeatmapEncoderTest
|
||||||
{
|
{
|
||||||
private const string normal = "Soleily - Renatus (Gamu) [Insane].osu";
|
|
||||||
|
|
||||||
private static IEnumerable<string> allBeatmaps => TestResources.GetStore().GetAvailableResources().Where(res => res.EndsWith(".osu"));
|
private static IEnumerable<string> allBeatmaps => TestResources.GetStore().GetAvailableResources().Where(res => res.EndsWith(".osu"));
|
||||||
|
|
||||||
[TestCaseSource(nameof(allBeatmaps))]
|
[TestCaseSource(nameof(allBeatmaps))]
|
||||||
public void TestDecodeEncodedBeatmap(string name)
|
public void TestBeatmap(string name)
|
||||||
{
|
{
|
||||||
var decoded = decode(normal, out var encoded);
|
var decoded = decode(name, out var encoded);
|
||||||
|
|
||||||
Assert.That(decoded.HitObjects.Count, Is.EqualTo(encoded.HitObjects.Count));
|
Assert.That(decoded.HitObjects.Count, Is.EqualTo(encoded.HitObjects.Count));
|
||||||
Assert.That(encoded.Serialize(), Is.EqualTo(decoded.Serialize()));
|
Assert.That(encoded.Serialize(), Is.EqualTo(decoded.Serialize()));
|
||||||
|
Loading…
Reference in New Issue
Block a user