示例#1
0
        public void GetLookup_Positive()
        {
            var input    = "THS_is_a_dificult_identiffier_to_mtch";
            var expected = "THS_is_a_dificult_identiffier_to_mtch";
            var matching = new ExactNameMatchingStrategy();

            Assert.AreEqual(matching.GetLookup(expected), matching.GetLookup(input));
        }
示例#2
0
        public void GetLookup_Negative()
        {
            var input    = " This IS a *difficult* identifier to_match! ";
            var expected = "This IS a *difficult* identifier to_match!";
            var matching = new ExactNameMatchingStrategy();

            Assert.AreNotEqual(matching.GetLookup(expected), matching.GetLookup(input));
            Assert.AreNotEqual(matching.GetLookup(expected.ToUpper()), matching.GetLookup(input));
        }
示例#3
0
        public void IsMatch_Positive()
        {
            var input    = "thisisadifficultidentifiertomatch";
            var property = typeof(ExactNameMatchingStrategyTest).GetProperty("thisisadifficultidentifiertomatch");
            var matching = new ExactNameMatchingStrategy();

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