Esempio n. 1
0
        public void ClearPosts_PostCountsInThreadIsZero_0()
        {
            Thread testThread = new Thread(0);

            testThread.Save();

            Post testPost = new Post(0, testThread.Id, "Good Post", "This is the first post EVER posted on THIS forum YAY", DB.GetNow(), "First user");

            testPost.Save();

            testThread.ClearPosts();

            List <Post> threadPosts = testThread.GetPosts();

            Assert.AreEqual(0, threadPosts.Count);
        }