mirror of https://github.com/ppy/osu
Move all sets to object initialiser for code formatting reasons
This commit is contained in:
parent
3b19467ead
commit
fadebcdc03
|
@ -17,22 +17,25 @@ public TestSceneOsuModDifficultyAdjust()
|
|||
}
|
||||
|
||||
[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
|
||||
});
|
||||
|
|
|
@ -100,12 +100,7 @@ protected class ModTestData
|
|||
/// <summary>
|
||||
/// The <see cref="Mod"/> this test case tests.
|
||||
/// </summary>
|
||||
public readonly Mod Mod;
|
||||
|
||||
public ModTestData(Mod mod)
|
||||
{
|
||||
Mod = mod;
|
||||
}
|
||||
public Mod Mod;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue