public void Added_Posts_Show_Up() { ListPostPage.GoTo(PostType.Posts); ListPostPage.StoreCount(); PostCreator.CreatePost(); ListPostPage.GoTo(PostType.Posts); Assert.AreEqual(ListPostPage.PreviousPostCount + 1, ListPostPage.CurrentPostCount, "Could of posts did not increase"); Assert.IsTrue(ListPostPage.DoesPostExistWithTitle(PostCreator.PreviousTitle)); ListPostPage.TrashPost(PostCreator.PreviousTitle); Assert.AreEqual(ListPostPage.PreviousPostCount, ListPostPage.CurrentPostCount, "Could not trash post"); }
private static void TrashPost() { ListPostPage.TrashPost(PreviousTitle); Initialize(); }