1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 02:13:38 +08:00

Move all sets to object initialiser for code formatting reasons

This commit is contained in:
Dean Herbert
2020-03-05 10:21:25 +09:00
Unverified
parent 3b19467ead
commit fadebcdc03
2 changed files with 7 additions and 9 deletions
@@ -17,22 +17,25 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
}
[Test]
public void TestNoAdjustment() => CreateModTest(new ModTestData(new OsuModDifficultyAdjust())
public void TestNoAdjustment() => CreateModTest(new ModTestData()
{
Mod = new OsuModDifficultyAdjust(),
Autoplay = true,
PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2
});
[Test]
public void TestCircleSize10() => CreateModTest(new ModTestData(new OsuModDifficultyAdjust { CircleSize = { Value = 10 } })
public void TestCircleSize10() => CreateModTest(new ModTestData
{
Mod = new OsuModDifficultyAdjust { CircleSize = { Value = 10 } },
Autoplay = true,
PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2
});
[Test]
public void TestApproachRate10() => CreateModTest(new ModTestData(new OsuModDifficultyAdjust { ApproachRate = { Value = 10 } })
public void TestApproachRate10() => CreateModTest(new ModTestData
{
Mod = new OsuModDifficultyAdjust { ApproachRate = { Value = 10 } },
Autoplay = true,
PassCondition = () => ((ScoreAccessibleTestPlayer)Player).ScoreProcessor.JudgedHits >= 2
});
+1 -6
View File
@@ -100,12 +100,7 @@ namespace osu.Game.Tests.Visual
/// <summary>
/// The <see cref="Mod"/> this test case tests.
/// </summary>
public readonly Mod Mod;
public ModTestData(Mod mod)
{
Mod = mod;
}
public Mod Mod;
}
}
}