mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
ModTestCaseData -> ModTestData
This commit is contained in:
@ -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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user