public void AddButtonCorrectAddwithAlbum() { ButtonTestsClass addbutton = new ButtonTestsClass(); string result = addbutton.Add_Button_Click_Test("Skillet", "Rise", "Rise"); string expected_string = "Skillet - Rise from Album: Rise"; Assert.AreEqual(result, expected_string, "New Song object must be created with chosen artist,title and album "); }
public void AddButtonTitletisEmpty() { ButtonTestsClass addbutton = new ButtonTestsClass(); string result = addbutton.Add_Button_Click_Test("Skillet", "", "Rise"); string expected_string = "Pole artysta i tytu³ s¹ obowi¹zkowe"; Assert.AreEqual(result, expected_string, "Title can't be empty"); }
public void AddButtonTooLongTitle() { ButtonTestsClass addbutton = new ButtonTestsClass(); string result = addbutton.Add_Button_Click_Test("Skillet", "Risetesttesttesttesttesttesttesttesttest", "Rise"); string expected_string = "Pole tytu³ nie mo¿e byæ d³u¿sze ni¿ 30 znaków"; Assert.AreEqual(result, expected_string, "Max length of title is 30"); }
public void AddButtonTooLongAlbum() { ButtonTestsClass addbutton = new ButtonTestsClass(); string result = addbutton.Add_Button_Click_Test("Skillet", "Rise", "Risetesttesttesttesttesttest"); string expected_string = "Pole album nie mo¿e byæ d³u¿sze ni¿ 20 znaków"; Assert.AreEqual(result, expected_string, "Max length of album is 20"); }
public void AddButtonTooLongArtist() { ButtonTestsClass addbutton = new ButtonTestsClass(); string result = addbutton.Add_Button_Click_Test("Skilletfromrisetonationtesttesttest", "Rise", "Rise"); string expected_string = "Pole artysta nie mo¿e byæ d³u¿sze ni¿ 30 znaków"; Assert.AreEqual(result, expected_string, "Max length of artist is 30"); }