From 2f15653d463cf565faf86391eccc4b65c54433b4 Mon Sep 17 00:00:00 2001 From: Jorolf Date: Wed, 29 Mar 2017 15:37:51 +0200 Subject: [PATCH] removed duplicate code --- osu.Desktop.VisualTests/Tests/TestCaseDetails.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osu.Desktop.VisualTests/Tests/TestCaseDetails.cs b/osu.Desktop.VisualTests/Tests/TestCaseDetails.cs index 2d22009f21..0e281fdef5 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseDetails.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseDetails.cs @@ -46,8 +46,7 @@ namespace osu.Desktop.VisualTests.Tests }); details.Ratings = Enumerable.Range(1, 10); - details.Fails = Enumerable.Range(1, 100).Select(i => (int)(Math.Cos(i) * 100)); - details.Retries = Enumerable.Range(1, 100).Select(i => (int)(Math.Sin(i) * 100)); + newRetryAndFailValues(); AddButton("new retry/fail values", newRetryAndFailValues); } @@ -56,9 +55,9 @@ namespace osu.Desktop.VisualTests.Tests private void newRetryAndFailValues() { - lastRange += 100; details.Fails = Enumerable.Range(lastRange, 100).Select(i => (int)(Math.Cos(i) * 100)); details.Retries = Enumerable.Range(lastRange, 100).Select(i => (int)(Math.Sin(i) * 100)); + lastRange += 100; } } }