Skip to content

Instantly share code, notes, and snippets.

@trailmax
Created July 23, 2015 16:06
Show Gist options
  • Save trailmax/6c4c0865d0590f0ddc48 to your computer and use it in GitHub Desktop.
Save trailmax/6c4c0865d0590f0ddc48 to your computer and use it in GitHub Desktop.
[TestCase("Projects Topside", "Projects Systems")]
[TestCase("Topside", "Systems")]
public void ProjectsTopsides_vs_ProjectsSystems(string one, string another)
{
// Act
var fuzzyMatchValue = one.FuzzyMatch(another);
var diceCoefficient = one.DiceCoefficient(another);
var levenshteinDistance = one.LevenshteinDistance(another);
var lcs = one.LongestCommonSubsequence(another);
// Assert
Console.WriteLine("Fuzzy Match Value: {0}", fuzzyMatchValue);
Console.WriteLine("Dice Coefficient: {0}", diceCoefficient);
Console.WriteLine("Levenshtein Distance: {0}", levenshteinDistance);
Console.WriteLine("Longest Common Subsequence: {0}", lcs);
Console.WriteLine("Double Metaphone for T: {0} and S: {1}", one.ToDoubleMetaphone(), another.ToDoubleMetaphone());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment