public void RemovePost() { //Arrange newsFeedTester.RemovePost(1); //Assert Assert.IsFalse(newsFeedTester.ErrorDetected); }
private void RemovePost() { DisplayTitle("Removing a Post"); Post post = SelectPost(); string[] choices = { "Remove", "Quit" }; int choiceNo = UserLib.SelectChoice(choices); if (choiceNo == 1) { news.RemovePost(post); } news.DisplaySummary(); }