Update beatmap info wedge tests

This commit is contained in:
Joehu 2019-09-24 16:23:36 -07:00
parent 8efba255c3
commit cc6030ca14
1 changed files with 2 additions and 4 deletions

View File

@ -75,7 +75,6 @@ protected override void LoadComplete()
testBeatmapLabels(instance);
// TODO: adjust cases once more info is shown for other gamemodes
switch (instance)
{
case OsuRuleset _:
@ -99,8 +98,6 @@ protected override void LoadComplete()
break;
}
}
testNullBeatmap();
}
private void testBeatmapLabels(Ruleset ruleset)
@ -117,7 +114,8 @@ private void testInfoLabels(int expectedCount)
AddAssert("check info labels count", () => infoWedge.Info.InfoLabelContainer.Children.Count == expectedCount);
}
private void testNullBeatmap()
[Test]
public void testNullBeatmap()
{
selectBeatmap(null);
AddAssert("check empty version", () => string.IsNullOrEmpty(infoWedge.Info.VersionLabel.Text));