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
parent 3b19467ead
commit fadebcdc03
2 changed files with 7 additions and 9 deletions

View File

@ -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
});

View File

@ -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;
}
}
}