1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 01:37:31 +08:00

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]
public void TestNoAdjustment() => CreateModTest(new ModTestCaseData(new OsuModDifficultyAdjust())
public void TestNoAdjustment() => CreateModTest(new ModTestData(new OsuModDifficultyAdjust())
{
Autoplay = true,
PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2
});
[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,
PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2
});
[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,
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()
@ -78,7 +78,7 @@ namespace osu.Game.Tests.Visual
}
}
protected class ModTestCaseData
protected class ModTestData
{
/// <summary>
/// Whether to use a replay to simulate an auto-play. True by default.
@ -102,7 +102,7 @@ namespace osu.Game.Tests.Visual
/// </summary>
public readonly Mod Mod;
public ModTestCaseData(Mod mod)
public ModTestData(Mod mod)
{
Mod = mod;
}