public void z1()
        {
            // Arrange
            var badwords = new[] { "p**n" };
            var service  = new ProfanityService(badwords);

            // Act
            var actual = service.HasBadWords("last word is p**n");

            // Assert
            Assert.IsTrue(actual);
        }
        public void HandleSpaceBeforeAndAfter()
        {
            // Arrange
            var badwords = new[] { "p**n" };
            var service  = new ProfanityService(badwords);

            // Act
            var actual = service.HasBadWords(" p**n ");

            // Assert
            Assert.IsTrue(actual);
        }
        public void Embedded()
        {
            // Arrange
            var badwords = new[] { "p**n" };
            var service  = new ProfanityService(badwords);

            // Act
            var actual = service.HasBadWords("notpornisit");

            // Assert
            Assert.IsFalse(actual);
        }
        public void HandleWordByItself()
        {
            // Arrange
            var badwords = new[] { "p**n" };
            var service  = new ProfanityService(badwords);

            // Act
            var actual = service.HasBadWords("p**n");

            // Assert
            Assert.IsTrue(actual);
        }
        public void Hyphenated()
        {
            // Arrange
            var badwords = new[] { "p**n" };
            var service  = new ProfanityService(badwords);

            // Act
            var actual = service.HasBadWords("p**n-ish");

            // Assert
            Assert.IsTrue(actual);
        }