예제 #1
0
 public static void NormalizeWord_UnexistingWords()
 {
     var testWords = new List<string> {"sffwfsfsfsfsdeggrftgr", "ThisWordIsNotExist"};
     var filter = new Normalizer();
     var actual = filter.FilterWords(testWords);
     var excepted = new List<string>();
     CollectionAssert.AreEqual(excepted, actual);
 }
예제 #2
0
 public static void NormalizeWord_EmptyInput()
 {
     var testWords = new List<string>();
     var filter = new Normalizer();
     var actual = filter.FilterWords(testWords);
     var excepted = new List<string>();
     CollectionAssert.AreEqual(excepted, actual);
 }
예제 #3
0
 public static void NormalizeWord_NothingNormilize()
 {
     var testWords = new List<string> {"computer", "fruit", "number" };
     var filter = new Normalizer();
     var actual = filter.FilterWords(testWords);
     var excepted = new List<string> { "computer", "fruit", "number"};
     CollectionAssert.AreEqual(excepted, actual);
 }
예제 #4
0
 public static void NormalizeWordTest()
 {
     var testWords = new List<string> { "counting","thinks" };
     var filter = new Normalizer();
     var actual = filter.FilterWords(testWords);
     var excepted = new List<string> {"count","think"};
     CollectionAssert.AreEqual(excepted, actual);
 }