[skip ci] Reduce warnings during tests (#2318)

This commit is contained in:
Alex Tan 2023-10-18 01:43:21 +11:00 committed by GitHub
parent 48d86cde39
commit cd3a15fa3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 29 additions and 28 deletions

View file

@ -220,7 +220,7 @@ public class PersonHelperTests
});
Assert.NotEqual(existingPeople, peopleRemoved);
Assert.Equal(1, peopleRemoved.Count);
Assert.Single(peopleRemoved);
}
[Fact]
@ -238,14 +238,14 @@ public class PersonHelperTests
});
Assert.NotEqual(existingPeople, peopleRemoved);
Assert.Equal(1, peopleRemoved.Count);
Assert.Single(peopleRemoved);
PersonHelper.RemovePeople(existingPeople, new[] {"Joe Shmo"}, PersonRole.CoverArtist, person =>
{
peopleRemoved.Add(person);
});
Assert.Equal(0, existingPeople.Count);
Assert.Empty(existingPeople);
Assert.Equal(2, peopleRemoved.Count);
}