public void NamesListIsInNamesEtcMultiWordList() { // Arrange var namesList = new NamesList(Directory.GetCurrentDirectory(), "en", false, null); // Act namesList.Add("Charlie Parker123"); var exists = namesList.IsInNamesEtcMultiWordList("This is Charlie Parker123!", "Charlie Parker123"); // Assert Assert.IsTrue(exists); }
public bool HasNameExtended(string word, string text) { return(_namesEtcListUppercase.Contains(word) || _namesEtcListWithApostrophe.Contains(word) || _namesList.IsInNamesEtcMultiWordList(text, word)); }