public void ReturnTrueWhenUrlFound() { // Arrange var badwords = new[] { "p**n" }; var service = new ProfanityService(badwords); // Act var actual = service.HasUrl("click this http://www.foufos.gr/kino"); // Assert Assert.IsTrue(actual); }
public void ReturnFalseWhenUrlNotFound() { // Arrange var badwords = new[] { "p**n" }; var service = new ProfanityService(badwords); // Act var actual = service.HasUrl("click this link"); // Assert Assert.IsFalse(actual); }