public void GivenContactFuzzyMatcher_ExpectPositiveMatch() { var matcher = new AcceleratedFuzzyMatcher <TestContact, TestContact>(Targets, this.SimpleDistance); BaseFuzzyMatcherTester.GivenContactFuzzyMatcher_ExpectPositiveMatch(matcher); }
public void GivenZeroThresholdAndExactTarget_ExpectPositiveMatch() { var matcher = new AcceleratedFuzzyMatcher <string, string>(this.TargetStrings, this.StringDistance); BaseFuzzyMatcherTester.GivenZeroThresholdAndExactTarget_ExpectPositiveMatch(matcher); }
public void GivenZeroThresholdAndWrongTarget_ExpectNull() { var matcher = new AcceleratedFuzzyMatcher <string, string>(this.TargetStrings, this.StringDistance); BaseFuzzyMatcherTester.GivenZeroThresholdAndWrongTarget_ExpectNull(matcher); }
public void GivenHybridDistance_ExpectPositiveMatch() { var matcher = new AcceleratedFuzzyMatcher <string, DistanceInput>(this.TargetStrings, this.HybridDistance, PhraseToDistanceInput); BaseFuzzyMatcherTester.GivenDistanceInput_ExpectPositiveMatch(matcher); }
public void GivenMultipleNearestWithinThreshold_ExpectMultiplePositiveMatch() { var matcher = new AcceleratedFuzzyMatcher <string, string>(this.TargetStrings, this.StringDistance); BaseFuzzyMatcherTester.GivenMultipleNearestWithinThreshold_ExpectMultiplePositiveMatch(matcher); }
public void GivenPhoneticDistance_ExpectPositiveMatch() { var matcher = new AcceleratedFuzzyMatcher <string, EnPronunciation>(this.TargetStrings, this.PhoneticDistance, phrase => PhraseToDistanceInput(phrase).Pronunciation); BaseFuzzyMatcherTester.GivenEnPronunciation_ExpectPositiveMatch(matcher); }
public void GivenStringDistanceAndExtractor_ExpectPositiveMatch() { var matcher = new AcceleratedFuzzyMatcher <TestContact, string>(Targets, this.StringDistance, (target) => target.ToString()); BaseFuzzyMatcherTester.GivenStringDistanceAndExtractor_ExpectPositiveMatch(matcher); }
public void GivenDifferentCase_ExpectPositiveMatch() { var matcher = new AcceleratedFuzzyMatcher <string, string>(this.TargetStrings, this.StringDistance); BaseFuzzyMatcherTester.GivenDifferentCase_ExpectPositiveMatch(matcher); }
public void GivenCustomDistanceDelegate_ExpectPositiveMatch() { var matcher = new AcceleratedFuzzyMatcher <string, string>(this.TargetStrings, InverseStringDistance); BaseFuzzyMatcherTester.GivenCustomDistanceDelegate_ExpectPositiveMatch(matcher); }
public void GivenNullTarget_ExpectException() { var matcher = new AcceleratedFuzzyMatcher <TestContact, string>(Targets, this.StringDistance, contact => contact.FullName); BaseFuzzyMatcherTester.GivenNullTarget_ExpectException(matcher); }