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)); }
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)); }
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())); }