public async Task TestPreview() { // Get popular tracks in Great Britain ContentResponse browseResults = await Client.BrowseAsync(Namespace.music, ContentSource.Catalog, ItemType.Tracks, country : "GB").Log(); Assert.IsNotNull(browseResults, "The browse response should not be null"); AssertPaginatedListIsValid(browseResults.Tracks, 25, 100); // Request a preview stream URL for the first one Track track = browseResults.Tracks.Items.First(); StreamResponse streamResponse = await Client.PreviewAsync(track.Id, ClientInstanceId, country : "GB").Log(); Assert.IsNotNull(streamResponse, "The preview stream URL response should not be null"); Assert.IsNotNull(streamResponse.Url, "The preview stream URL should not be null"); Assert.IsNotNull(streamResponse.ContentType, "The preview stream content type should not be null"); }