Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public void HypenatedWordHasOneWildcardAtTheEnd()
        {
            var word   = "co-ordinator";
            var filter = new WildcardSuffixFilter();

            var filtered = filter.Filter(word);

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