Пример #1
0
        public async Task GetFavouriteTracks()
        {
            var actual = await _user.GetFavouriteTracks();

            IEnumerable <ITrack> tracks = await _user.GetFavouriteTracks();


            Assert.IsNotNull(tracks, nameof(tracks));
            Assert.AreEqual(7, tracks.Count(), "Count");

            var firstTrack = tracks.First();

            Assert.IsNotNull(firstTrack, nameof(firstTrack));
            Assert.AreEqual(137745477, firstTrack.Id, nameof(firstTrack.Id));
            Assert.AreEqual("Arcade", firstTrack.Title, nameof(firstTrack.Title));
        }
Пример #2
0
        public async Task GetFavouriteTracks()
        {
            _server.Content = base.GetServerResponse("favourite_tracks");


            IEnumerable <ITrack> tracks = await _user.GetFavouriteTracks();


            Assert.IsNotNull(tracks, nameof(tracks));
            Assert.AreEqual(58, tracks.Count(), "Count");

            var firstTrack = tracks.First();

            Assert.IsNotNull(firstTrack, nameof(firstTrack));
            Assert.AreEqual(565423972, firstTrack.Id, nameof(firstTrack.Id));
            Assert.AreEqual("MIA (feat. Drake)", firstTrack.Title, nameof(firstTrack.Title));
        }