Пример #1
0
        public void GetBannedList_BannedWordsList_ReturnsTenBanWord()
        {
            // Arrange
            var banReader = new BanWordsReader(_bannedWords);

            // Act
            var result = banReader.GetBannedList();

            // Assert
            Assert.AreEqual(10, result.Count(), "Should return 10 banned words");
        }
Пример #2
0
        public void GetBannedList_DuplicateBannedWords_ReturnsOneBanWord()
        {
            // Arrange
            var banReader = new BanWordsReader(_doubleBannedFilePath);

            // Act
            var result = banReader.GetBannedList();

            // Assert
            Assert.AreEqual(1, result.Count(), "Should return 1 banned words");
        }