diff --git a/Content.IntegrationTests/Pair/TestPair.Helpers.cs b/Content.IntegrationTests/Pair/TestPair.Helpers.cs index cc83232a06..f46b83165f 100644 --- a/Content.IntegrationTests/Pair/TestPair.Helpers.cs +++ b/Content.IntegrationTests/Pair/TestPair.Helpers.cs @@ -143,7 +143,7 @@ public async Task SetAntagPref(ProtoId id, bool value) // what even is the point of ICharacterProfile if we always cast it to HumanoidCharacterProfile to make it usable? var profile = (HumanoidCharacterProfile) prefs.SelectedCharacter; - Assert.That(profile.AntagPreferences.Contains(id), Is.EqualTo(!value)); + Assert.That(profile.AntagPreferences.Any(preference => preference == id), Is.EqualTo(!value)); var newProfile = profile.WithAntagPreference(id, value); await Server.WaitPost(() => @@ -154,6 +154,6 @@ await Server.WaitPost(() => // And why the fuck does it always create a new preference and profile object instead of just reusing them? var newPrefs = prefMan.GetPreferences(Client.User.Value); var newProf = (HumanoidCharacterProfile) newPrefs.SelectedCharacter; - Assert.That(newProf.AntagPreferences.Contains(id), Is.EqualTo(value)); + Assert.That(newProf.AntagPreferences.Any(preference => preference == id), Is.EqualTo(value)); } }