mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 12:22:57 +08:00
Remove unnecessary assigns of EF foreign ID
fields in tests
This commit is contained in:
parent
6a671b0a52
commit
2cb97dd599
@ -131,7 +131,6 @@ namespace osu.Game.Tests.Resources
|
|||||||
Length = length,
|
Length = length,
|
||||||
BPM = bpm,
|
BPM = bpm,
|
||||||
Ruleset = rulesetInfo,
|
Ruleset = rulesetInfo,
|
||||||
RulesetID = rulesetInfo.ID ?? -1,
|
|
||||||
Metadata = metadata,
|
Metadata = metadata,
|
||||||
BaseDifficulty = new BeatmapDifficulty
|
BaseDifficulty = new BeatmapDifficulty
|
||||||
{
|
{
|
||||||
|
@ -584,7 +584,6 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
for (int i = 0; i <= 2; i++)
|
for (int i = 0; i <= 2; i++)
|
||||||
{
|
{
|
||||||
testMixed.Beatmaps[i].Ruleset = rulesets.AvailableRulesets.ElementAt(i);
|
testMixed.Beatmaps[i].Ruleset = rulesets.AvailableRulesets.ElementAt(i);
|
||||||
testMixed.Beatmaps[i].RulesetID = i;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
carousel.UpdateBeatmapSet(testMixed);
|
carousel.UpdateBeatmapSet(testMixed);
|
||||||
@ -606,7 +605,6 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
testSingle.Beatmaps.ForEach(b =>
|
testSingle.Beatmaps.ForEach(b =>
|
||||||
{
|
{
|
||||||
b.Ruleset = rulesets.AvailableRulesets.ElementAt(1);
|
b.Ruleset = rulesets.AvailableRulesets.ElementAt(1);
|
||||||
b.RulesetID = b.Ruleset.ID ?? 1;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
carousel.UpdateBeatmapSet(testSingle);
|
carousel.UpdateBeatmapSet(testSingle);
|
||||||
|
@ -95,7 +95,6 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
{
|
{
|
||||||
OnlineID = i,
|
OnlineID = i,
|
||||||
BeatmapInfo = beatmapInfo,
|
BeatmapInfo = beatmapInfo,
|
||||||
BeatmapInfoID = beatmapInfo.ID,
|
|
||||||
Accuracy = RNG.NextDouble(),
|
Accuracy = RNG.NextDouble(),
|
||||||
TotalScore = RNG.Next(1, 1000000),
|
TotalScore = RNG.Next(1, 1000000),
|
||||||
MaxCombo = RNG.Next(1, 1000),
|
MaxCombo = RNG.Next(1, 1000),
|
||||||
|
Loading…
Reference in New Issue
Block a user