public void testIsNotEqualsLenghtNullCheck() { IComparator comparator = new NumerOfLettersComparator(); ComparationInput input = new ComparationInput(); input.filename1 = "filename1"; input.filename2 = "filename2"; ComparationResult result = comparator.compare(input); Assert.AreEqual(1, result.score); Assert.AreEqual(1, result.weigth); Assert.AreEqual(input.filename1, result.filename1); Assert.AreEqual(input.filename2, result.filename2); }
public void testIsEqualsLenghtRemoveWhiteSpacedAndPunctuation() { IComparator comparator = new NumerOfLettersComparator(); ComparationInput input = new ComparationInput(); input.filename1 = "filename1"; input.filename2 = "filename2"; input.file1 = "test,te stt.est"; input.file2 = "e st,test.testt"; ComparationResult result = comparator.compare(input); Assert.AreEqual(1, result.score); Assert.AreEqual(1, result.weigth); Assert.AreEqual(input.filename1, result.filename1); Assert.AreEqual(input.filename2, result.filename2); }