예제 #1
0
        public void GetTitle_ReturnsTitle_String()
        {
            //Arrange
            string  title      = "Walk the dog.";
            MusicCD newMusicCD = new MusicCD(title);

            //Act
            string result = newMusicCD.GetTitle();

            //Assert
            Assert.AreEqual(title, result);
        }
예제 #2
0
        public void SetTitle_SetTitle_String()
        {
            //Arrange
            string  title      = "Walk the dog.";
            MusicCD newMusicCD = new MusicCD(title);

            //Act
            string updatedTitle = "Do the dishes";

            newMusicCD.SetTitle(updatedTitle);
            string result = newMusicCD.GetTitle();

            //Assert
            Assert.AreEqual(updatedTitle, result);
        }