mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Fix assertions.
This commit is contained in:
parent
acfcd30cc6
commit
2a16eafe8f
@ -136,12 +136,12 @@ namespace osu.Game.Tests.Beatmaps.Formats
|
||||
Assert.IsNotNull(slider);
|
||||
Assert.AreEqual(new Vector2(192, 168), slider.Position);
|
||||
Assert.AreEqual(956, slider.StartTime);
|
||||
Assert.IsTrue(slider.Samples.Any(s => s.Name == @"normal"));
|
||||
Assert.IsTrue(slider.Samples.Any(s => s.Name == @"hitnormal"));
|
||||
var hit = beatmap.HitObjects[1] as LegacyHit;
|
||||
Assert.IsNotNull(hit);
|
||||
Assert.AreEqual(new Vector2(304, 56), hit.Position);
|
||||
Assert.AreEqual(1285, hit.StartTime);
|
||||
Assert.IsTrue(hit.Samples.Any(s => s.Name == @"clap"));
|
||||
Assert.IsTrue(hit.Samples.Any(s => s.Name == @"hitclap"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user