Пример #1
0
        public void NamesListIsInNameMultiWordList()
        {
            // Arrange
            var namesList = new NameList(Directory.GetCurrentDirectory(), "ru", false, null);

            // Act
            namesList.Add("Charlie Parker123");
            var exists = namesList.IsInNamesMultiWordList("This is Charlie Parker123!", "Charlie Parker123");

            // Assert
            Assert.IsTrue(exists);
        }
Пример #2
0
 public bool HasNameExtended(string word, string text)
 {
     return(_namesListUppercase.Contains(word) || _namesListWithApostrophe.Contains(word) || _nameList.IsInNamesMultiWordList(text, word));
 }