public void Can_Edit_A_Page()
        {
            ListsPostPage.GoTo(PostType.Page);
            ListsPostPage.SelectPost("Sample Page");

            Assert.IsTrue(NewPostPage.IsInEditMode(), "Wasn't in edit mode.");
            Assert.AreEqual("Sample Page", NewPostPage.Title, "Title did not match.");
        }
        public void Added_Posts_Show_Up()
        {
            //Go to posts, get post count, store
            ListsPostPage.GoTo(PostType.Posts);
            ListsPostPage.StoreCount();

            //Add a new post
            PostCreator.CreatePost();

            //Go to posts, get a new post count
            ListsPostPage.GoTo(PostType.Posts);
            Assert.AreEqual(ListsPostPage.PreviousPostCount + 1, ListsPostPage.CurrentPostCount, "Count of posts did not increase");

            //Check for added post
            Assert.IsTrue(ListsPostPage.DoesPostExistWithTitle(PostCreator.PreviousTitle));

            //Trash post(clean up)
            ListsPostPage.TrashPost(PostCreator.PreviousTitle);
            Assert.AreEqual(ListsPostPage.PreviousPostCount, ListsPostPage.CurrentPostCount, "Could not trash post");
        }