Example #1
0
        public void IsMatch_Positive_Complex()
        {
            var input    = " Ths IS a *dificult* identiffier to_mtch! ";
            var property = typeof(SimpleNameMatchingStrategyTest).GetProperty("THS_is_a_dificult_identiffier_to_mtch");
            var matching = new SimpleNameMatchingStrategy();

            Assert.IsTrue(matching.IsMatch(property, input));
            Assert.IsTrue(matching.IsMatch(property, input.ToUpper()));
        }
Example #2
0
        public void GetLookup_Empty()
        {
            var input    = " This IS a *difficult* identifier to_match! ";
            var expected = "";
            var matching = new SimpleNameMatchingStrategy();

            Assert.AreNotEqual(matching.GetLookup(expected), matching.GetLookup(input));
            Assert.AreNotEqual(matching.GetLookup(expected.ToUpper()), matching.GetLookup(input));
        }
Example #3
0
        public void IsMatch_Positive()
        {
            var input    = " This IS a *difficult* identifier to_match! ";
            var property = typeof(SimpleNameMatchingStrategyTest).GetProperty("thisisadifficultidentifiertomatch");
            var matching = new SimpleNameMatchingStrategy();

            Assert.IsTrue(matching.IsMatch(property, input));
            Assert.IsTrue(matching.IsMatch(property, input.ToUpper()));
        }