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"); }
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"); }