public void DetectContent_ValidContent_ValidPattern_ContentDetected(string pattern, string content, bool expectedContentDetected)
 {
     var contentDetector = new ContentDetector();
     bool detected = contentDetector.DetectContent(content, pattern);
     Assert.Equal(expectedContentDetected, detected);
 }
 public void DetectContent_NullContent_AnyPattern_ThrowsException()
 {
     var contentDetector = new ContentDetector();
     Assert.Throws<ArgumentNullException>(() => contentDetector.DetectContent(null, "123"));
 }
 public void DetectContent_NullPattern_ThrowsInvalidOperationException()
 {
     var contentDetector = new ContentDetector();
     Assert.Throws<ArgumentNullException>(() => contentDetector.DetectContent("Hello Content", null));
 }
 public void DetectContent_EmptyContent_ValidPattern_ReturnsFalse()
 {
     var contentDetector = new ContentDetector();
     bool detected = contentDetector.DetectContent(string.Empty, "Good news!");
     Assert.False(detected);
 }