public void Transposition()
 {
     Assert.Equal(1, StringDistance.DamareuLevenshteinDistance("test", "tset"));
 }
 public void AdditionWithTransposition()
 {
     Assert.Equal(2, StringDistance.DamareuLevenshteinDistance("test", "tsets"));
 }
 public void Deletion()
 {
     Assert.Equal(1, StringDistance.DamareuLevenshteinDistance("test", "tst"));
 }
 public void AdditionOfRepeatedCharacters()
 {
     Assert.Equal(1, StringDistance.DamareuLevenshteinDistance("test", "teest"));
 }
 public void AdditionsPrependAndAppend()
 {
     Assert.Equal(9, StringDistance.DamareuLevenshteinDistance("test", "mytestiscrazy"));
 }
 public void Additions(int distance, string s1, string s2)
 {
     Assert.Equal(distance, StringDistance.DamareuLevenshteinDistance(s1, s2));
 }
 public void EqualStringsNoEdits()
 {
     Assert.Equal(0, StringDistance.DamareuLevenshteinDistance("test", "test"));
 }