Esempio n. 1
0
        public void GenerateTracks_ReturnsMenuWithIncrementedTracksAmount()
        {
            var recentlyPlayedTracks = _tracksUtils.GetRecentlyPlayedTracks();
            var menu = _tracksGenerator.GenerateTracks(recentlyPlayedTracks);

            Assert.AreEqual(recentlyPlayedTracks.Count + 1, menu.items.Count);
        }
Esempio n. 2
0
        public bool RecentlyPlayedTracks()
        {
            var  recentlyPlayedTracks = _tracksUtils.GetRecentlyPlayedTracks();
            var  tracksMenu           = _tracksGenerator.GenerateTracks(recentlyPlayedTracks);
            bool running = true;

            while (running)
            {
                running = tracksMenu.Display();
            }

            return(true);
        }
Esempio n. 3
0
        public void GetRecentlyPlayedTracks_ReturnsList()
        {
            var recentlyPlayedTracks = _tracksUtils.GetRecentlyPlayedTracks();

            Assert.AreNotEqual(0, recentlyPlayedTracks.Count);
        }