ModTestCaseData -> ModTestData

This commit is contained in:
Dean Herbert
2020-03-05 10:19:42 +09:00
parent 0f1f1d1a6b
commit 3b19467ead
2 changed files with 8 additions and 8 deletions

View File

@ -17,21 +17,21 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
} }
[Test] [Test]
public void TestNoAdjustment() => CreateModTest(new ModTestCaseData(new OsuModDifficultyAdjust()) public void TestNoAdjustment() => CreateModTest(new ModTestData(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(new OsuModDifficultyAdjust { CircleSize = { Value = 10 } }) public void TestCircleSize10() => CreateModTest(new ModTestData(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(new OsuModDifficultyAdjust { ApproachRate = { Value = 10 } }) public void TestApproachRate10() => CreateModTest(new ModTestData(new OsuModDifficultyAdjust { ApproachRate = { Value = 10 } })
{ {
Autoplay = true, Autoplay = true,
PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2 PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2

View File

@ -27,11 +27,11 @@ namespace osu.Game.Tests.Visual
{ {
} }
private ModTestCaseData currentTest; private ModTestData currentTest;
protected void CreateModTest(ModTestCaseData testCaseData) => CreateTest(() => protected void CreateModTest(ModTestData testData) => CreateTest(() =>
{ {
AddStep("set test data", () => currentTest = testCaseData); AddStep("set test data", () => currentTest = testData);
}); });
public override void TearDownSteps() public override void TearDownSteps()
@ -78,7 +78,7 @@ namespace osu.Game.Tests.Visual
} }
} }
protected class ModTestCaseData protected class ModTestData
{ {
/// <summary> /// <summary>
/// Whether to use a replay to simulate an auto-play. True by default. /// Whether to use a replay to simulate an auto-play. True by default.
@ -102,7 +102,7 @@ namespace osu.Game.Tests.Visual
/// </summary> /// </summary>
public readonly Mod Mod; public readonly Mod Mod;
public ModTestCaseData(Mod mod) public ModTestData(Mod mod)
{ {
Mod = mod; Mod = mod;
} }