public void test_mark_candidate_indexes() { using (new TooLongSignatureLineScope(3)) { // spaces are not considered when checking line length Bruteforce.MarkCandidateIndexes( new[] { "BR, ", "long", "Bob" }, new[] { 0, 1, 2 }).ShouldBe("clc".ToCharArray()); } }
public void test_mark_candidate_indexes_2() { using (new TooLongSignatureLineScope(3)) { // only candidate lines are marked // if line has only dashes it"s a candidate line Bruteforce.MarkCandidateIndexes( new[] { "-", "long", "-", "- i", "Bob" }, new[] { 0, 2, 3, 4 }).ShouldBe("ccdc".ToCharArray()); } }