Exemplo n.º 1
0
        public void TrackQueueHasSongs_No_ReturnsFalse()
        {
            //Arrange
            PlayQueue playQueue = new PlayQueue();
            bool      result;

            //Act
            result = playQueue.TrackQueueHasSongs();
            //Assert
            Assert.AreEqual(result, false); //Check if the queue has tracks, when no tracks are added -> returns false
        }
Exemplo n.º 2
0
        public void TrackQueueHasSongs_Yes_ReturnsTrue()
        {
            //Arrange
            PlayQueue playQueue = new PlayQueue();
            bool      result;

            //Act
            playQueue.TrackQueue.Enqueue(new Track()); //Enqueue track to the queue
            result = playQueue.TrackQueueHasSongs();
            //Assert
            Assert.AreEqual(result, true); //Check if the track is added to the queue -> returns true
        }