public void ValidateBlogPost_WhenCalledWithInvalidBlogPost_ErrorsShouldNotBeEmpty() { //Arrange var invalidBlogPost = new BlogPost(); //Act var result = invalidBlogPost.Validate(); //Assert Assert.IsNotEmpty(invalidBlogPost.Errors); }
public void ValidateBlogPost_InvalidBlogPost_ReturnsFalse() { //Arrange var invalidBlogPost = new BlogPost(); //Act var result = invalidBlogPost.Validate(); //Assert Assert.IsFalse(result); }