public void ShouldRejectModificationsWithNullComments() { Modification modification = new Modification(); CommentFilter filter = new CommentFilter(); filter.Pattern = ".*"; Assert.IsFalse(filter.Accept(modification), "Should not have matched but did."); }
public void ShouldRejectModificationsWithMatchingComments() { Modification modification = new Modification(); modification.Comment = "This is a comment."; CommentFilter filter = new CommentFilter(); filter.Pattern = ".* is not a .*"; Assert.IsFalse(filter.Accept(modification), "Should not have matched but did."); }