Fix failing tests doing reference comparisons between string and LocalisedString

This commit is contained in:
Dean Herbert
2021-02-25 17:46:35 +09:00
parent 6d1c5979ea
commit 3802cb29a4
4 changed files with 12 additions and 11 deletions

View File

@ -76,7 +76,7 @@ namespace osu.Game.Tests.Visual.UserInterface
var multiplier = mods.Aggregate(1.0, (current, mod) => current * mod.ScoreMultiplier);
var expectedValue = multiplier.Equals(1.0) ? string.Empty : $"{multiplier:N2}x";
return expectedValue == footerButtonMods.MultiplierText.Text;
return expectedValue == footerButtonMods.MultiplierText.Current.Value;
}
private class TestFooterButtonMods : FooterButtonMods