Exemple #1
0
        public void ModifyButtonNothingChanged()
        {
            ButtonTestsClass modifybutton    = new ButtonTestsClass();
            Song             song            = new Song("Skillet", "Rise", "Rise");
            string           result          = modifybutton.Modify_Button_Click_Test(song, "", "", "");
            string           expected_string = "Skillet - Rise from Album: Rise";

            Assert.AreEqual(result, expected_string, "Nothing should be changed");
        }
Exemple #2
0
        public void ModifyButtonCorrectChangeTitle()
        {
            ButtonTestsClass modifybutton    = new ButtonTestsClass();
            Song             song            = new Song("Skillet", "Rise", "Rise");
            string           result          = modifybutton.Modify_Button_Click_Test(song, "", "Salvation", "");
            string           expected_string = "Skillet - Salvation from Album: Rise";

            Assert.AreEqual(result, expected_string, "Title should be modified correctly");
        }
Exemple #3
0
        public void ModifyButtonCorrectChangeAlbum()
        {
            ButtonTestsClass modifybutton    = new ButtonTestsClass();
            Song             song            = new Song("Skillet", "Rise", "Rise");
            string           result          = modifybutton.Modify_Button_Click_Test(song, "", "", "NewOne");
            string           expected_string = "Skillet - Rise from Album: NewOne";

            Assert.AreEqual(result, expected_string, "Album should be modified correctly");
        }
Exemple #4
0
        public void ModifyButtonCorrectChangeEverything()
        {
            ButtonTestsClass modifybutton    = new ButtonTestsClass();
            Song             song            = new Song("Skillet", "Rise", "Rise");
            string           result          = modifybutton.Modify_Button_Click_Test(song, "TFK", "War of Change", "None");
            string           expected_string = "TFK - War of Change";

            Assert.AreEqual(result, expected_string, "Artist, Title and Album should be modified correctly");
        }