public async Task TestBrowseGenres() { // This test will fail if this computer's current geography is not valid for Xbox Music catalog content or // if the geography could not be determined by the service. Provide the "country" parameter if that is the case. // Get available genres in this computer's current geography ContentResponse genreResults = await Client.BrowseGenresAsync(Namespace.music).Log(); Assert.IsNotNull(genreResults, "The browse response should not be null"); Console.WriteLine("Culture: {0}", genreResults.Culture); Assert.IsNotNull(genreResults.Genres, "The browse response should contain genres"); Assert.IsTrue(0 < genreResults.Genres.Count, "The browse response should contain at least one genre"); Assert.IsNotNull(genreResults.Culture, "The genre response should contain the applicable culture"); }