Exemplo n.º 1
0
        public void CheckNotAcceptedCommentsNoCommentsReturnTrue()
        {
            // Arrange
            var post = PostObjectMother.CreateBlogPostWithNoComments();

            // Act
            bool result = post.AreNotAcceptedComments();

            // Assert
            Assert.IsTrue(result);
        }
Exemplo n.º 2
0
        public void CheckNotAcceptedCommentsWithAllAcceptedCommentsReturnFalse()
        {
            // Arrange
            var post    = PostObjectMother.CreateBlogPostWithNoComments();
            var comment = PostObjectMother.CreateAcceptedComment(100);

            // Act
            post.Comments.Add(comment);
            bool result = post.AreNotAcceptedComments();

            // Assert
            Assert.IsFalse(result);
        }