SpotifyApi.NetCore icon indicating copy to clipboard operation
SpotifyApi.NetCore copied to clipboard

The IsNull test is failing because it is an initialized empty array.

Open akshays2112 opened this issue 5 years ago • 0 comments

GetTrack_TrackIdMarket_AvailableMarketsIsNull test fails because returned response.AvailableMarkets is not null but an empty array.

Suggest something like the following code which I tested out and then the test successfully runs:

Assert.IsNull(response?.AvailableMarkets?.Length == 0 ? null : "Array not empty.");

akshays2112 avatar Oct 16 '20 06:10 akshays2112