Created
July 23, 2015 16:06
-
-
Save trailmax/6c4c0865d0590f0ddc48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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