1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:43:22 +08:00

Remove unused "name" parameter

This commit is contained in:
Dean Herbert 2020-03-05 10:18:37 +09:00
parent 2a581ef247
commit 0f1f1d1a6b
2 changed files with 4 additions and 10 deletions

View File

@ -17,21 +17,21 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
} }
[Test] [Test]
public void TestNoAdjustment() => CreateModTest(new ModTestCaseData("no adjustment", new OsuModDifficultyAdjust()) public void TestNoAdjustment() => CreateModTest(new ModTestCaseData(new OsuModDifficultyAdjust())
{ {
Autoplay = true, Autoplay = true,
PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2 PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2
}); });
[Test] [Test]
public void TestCircleSize10() => CreateModTest(new ModTestCaseData("cs = 10", new OsuModDifficultyAdjust { CircleSize = { Value = 10 } }) public void TestCircleSize10() => CreateModTest(new ModTestCaseData(new OsuModDifficultyAdjust { CircleSize = { Value = 10 } })
{ {
Autoplay = true, Autoplay = true,
PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2 PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2
}); });
[Test] [Test]
public void TestApproachRate10() => CreateModTest(new ModTestCaseData("ar = 10", new OsuModDifficultyAdjust { ApproachRate = { Value = 10 } }) public void TestApproachRate10() => CreateModTest(new ModTestCaseData(new OsuModDifficultyAdjust { ApproachRate = { Value = 10 } })
{ {
Autoplay = true, Autoplay = true,
PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2 PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2

View File

@ -97,19 +97,13 @@ namespace osu.Game.Tests.Visual
[CanBeNull] [CanBeNull]
public Func<bool> PassCondition; public Func<bool> PassCondition;
/// <summary>
/// The name of this test case, displayed in the test browser.
/// </summary>
public readonly string Name;
/// <summary> /// <summary>
/// The <see cref="Mod"/> this test case tests. /// The <see cref="Mod"/> this test case tests.
/// </summary> /// </summary>
public readonly Mod Mod; public readonly Mod Mod;
public ModTestCaseData(string name, Mod mod) public ModTestCaseData(Mod mod)
{ {
Name = name;
Mod = mod; Mod = mod;
} }
} }