public void ShouldReturnJaroWinklerDistanceOf1() { var result = JaroWinklerDistance.CalculateDistance(InputPassword, InputU); Assert.IsTrue(Math.Abs(result - 1.0) < 0.0000001); }
public void ShouldReturnJaroWinklerDistanceOfPoint5() { var result = JaroWinklerDistance.CalculateDistance(InputPassword, InputUsername); Assert.IsTrue(Math.Abs(result - 0.5) < 0.0000001); }