Beispiel #1
0
        public void WordInBracketsHasOneWildcardAtTheEnd()
        {
            var word   = "Head Teacher (PNR01596)";
            var filter = new WildcardSuffixFilter();

            var filtered = filter.Filter(word);

            Assert.AreEqual("Head* Teacher* (PNR01596*)", filtered);
        }
Beispiel #2
0
        public void HypenatedWordHasOneWildcardAtTheEnd()
        {
            var word   = "co-ordinator";
            var filter = new WildcardSuffixFilter();

            var filtered = filter.Filter(word);

            Assert.AreEqual("co-ordinator*", filtered);
        }