public void InvalidIds_ReturnsEmptyBanCollection(IEnumerable <ulong> id64s) { var response = SteamApiClient.GetSteamAccountsBansAsync(id64s) .Result; SleepAfterSendingRequest(); Assert.False(response.Successful); Assert.Null(response.Contents); Assert.NotNull(response.ThrownException); }
public void ValidIds_ReturnsAccountBans(IEnumerable <ulong> id64s) { var response = SteamApiClient.GetSteamAccountsBansAsync(id64s) .Result; SleepAfterSendingRequest(); Assert.True(response.Successful); Assert.Equal(response.Contents.Count, id64s.Count()); Assert.All(response.Contents, ban => { Assert.Contains(id64s, id => id == ban.Id64); }); }