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"); }
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"); }
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"); }
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"); }