Split and rename tests

This commit is contained in:
Endrik Tombak 2020-04-05 11:22:52 +03:00
parent 0ebb5a81f9
commit 8d3e228f78
1 changed files with 18 additions and 8 deletions

View File

@ -64,23 +64,33 @@ private void load(RulesetConfigCache configCache)
[SetUpSteps] [SetUpSteps]
public override void SetUpSteps() { } public override void SetUpSteps() { }
[Test] [TestCase(0)]
public void TestSnaking() [TestCase(1)]
[TestCase(2)]
public void TestSnakingEnabled(int repeatAmount)
{ {
AddStep("have autoplay", () => autoplay = true); AddStep("have autoplay", () => autoplay = true);
base.SetUpSteps(); base.SetUpSteps();
AddUntilStep("wait for track to start running", () => track.IsRunning); AddUntilStep("wait for track to start running", () => track.IsRunning);
for (int i = 0; i < 3; i++) testSlider(repeatAmount, true);
{ }
testSlider(i, true);
testSlider(i, false); [TestCase(0)]
} [TestCase(1)]
[TestCase(2)]
public void TestSnakingDisabled(int repeatAmount)
{
AddStep("have autoplay", () => autoplay = true);
base.SetUpSteps();
AddUntilStep("wait for track to start running", () => track.IsRunning);
testSlider(repeatAmount, false);
} }
[TestCase(true)] [TestCase(true)]
[TestCase(false)] [TestCase(false)]
public void TestArrowStays(bool isHit) public void TestArrowMovement(bool isHit)
{ {
AddStep($"{(isHit ? "enable" : "disable")} autoplay", () => autoplay = isHit); AddStep($"{(isHit ? "enable" : "disable")} autoplay", () => autoplay = isHit);
setSnaking(true); setSnaking(true);