Add score panel test

This commit is contained in:
smoogipoo 2020-05-16 18:22:07 +09:00
parent 2bde4fc3ee
commit 3df92925ee
1 changed files with 12 additions and 2 deletions

View File

@ -107,13 +107,23 @@ public void TestAllHitResults()
addPanelStep(score);
}
private void addPanelStep(ScoreInfo score) => AddStep("add panel", () =>
[Test]
public void TestContractedPanel()
{
var score = createScore();
score.Accuracy = 0.925;
score.Rank = ScoreRank.A;
addPanelStep(score, PanelState.Contracted);
}
private void addPanelStep(ScoreInfo score, PanelState state = PanelState.Expanded) => AddStep("add panel", () =>
{
Child = new ScorePanel(score)
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
State = PanelState.Expanded
State = state
};
});