mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
updated TestCase and some null checks
This commit is contained in:
@ -45,7 +45,9 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
});
|
||||
|
||||
AddRepeatStep("new retry/fail values", newRetryAndFailValues, 10);
|
||||
AddStep("new ratings", newRatings);
|
||||
AddStep("new ratings", () => details.Ratings = Enumerable.Range(1, 10));
|
||||
AddStep("remove retries and fails", () => details.Retries = null );
|
||||
AddStep("remove ratings", () => details.Ratings = null);
|
||||
}
|
||||
|
||||
private int lastRange = 1;
|
||||
@ -56,7 +58,5 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
details.Retries = Enumerable.Range(lastRange, 100).Select(i => (int)(Math.Sin(i) * 100));
|
||||
lastRange += 100;
|
||||
}
|
||||
|
||||
private void newRatings() => details.Ratings = Enumerable.Range(1, 10);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user