public void SingleValidId_ReturnsAccountBans() { var response = SteamApiClient.GetSteamAccountBansAsync(76561197960321706) .Result; SleepAfterSendingRequest(); Assert.True(76561197960321706 == response.Contents.Id64); }
public void SingleInvalidId_ThrowsEmptyApiResponseException() { var response = SteamApiClient.GetSteamAccountBansAsync(0) .Result; Assert.False(response.Successful); Assert.Null(response.Contents); Assert.NotNull(response.ThrownException); Assert.True(response.ThrownException is ApiEmptyResultException); }