Ejemplo n.º 1
0
        public void GetAll_ReturnsEmptyList_MusicCDList()
        {
            //Arrange
            List <MusicCD> newList = new List <MusicCD> {
            };

            //Act
            List <MusicCD> result = MusicCD.GetAll();

            //Assert
            CollectionAssert.AreEqual(newList, result);
        }
Ejemplo n.º 2
0
        public void GetAll_ReturnsMusicCDs_MusicCDList()
        {
            //Arrange
            string         title01     = "Walk the dog";
            string         title02     = "Wash the dishes";
            MusicCD        newMusicCD1 = new MusicCD(title01);
            MusicCD        newMusicCD2 = new MusicCD(title02);
            List <MusicCD> newList     = new List <MusicCD> {
                newMusicCD1, newMusicCD2
            };

            //Act
            List <MusicCD> result = MusicCD.GetAll();

            //Assert
            CollectionAssert.AreEqual(newList, result);
        }