mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Fix ScoreInfo.RealmUser
not getting deep cloned correctly
I'm still not at all happy with the play-to-results flow (with multiple clones), but this will have to do for now.
This commit is contained in:
@ -26,12 +26,16 @@ namespace osu.Game.Tests.NonVisual
|
||||
|
||||
score.Statistics[HitResult.Good]++;
|
||||
score.Rank = ScoreRank.X;
|
||||
score.RealmUser.Username = "test";
|
||||
|
||||
Assert.That(scoreCopy.Statistics[HitResult.Good], Is.EqualTo(10));
|
||||
Assert.That(score.Statistics[HitResult.Good], Is.EqualTo(11));
|
||||
|
||||
Assert.That(scoreCopy.Rank, Is.EqualTo(ScoreRank.B));
|
||||
Assert.That(score.Rank, Is.EqualTo(ScoreRank.X));
|
||||
|
||||
Assert.That(scoreCopy.RealmUser.Username, Is.EqualTo("test"));
|
||||
Assert.That(score.Rank, Is.Empty);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
Reference in New Issue
Block a user