예제 #1
0
            public void ShouldReturnJaroWinklerDistanceOfPoint5()
            {
                var result = JaroWinklerDistance.CalculateProximity(InputPassword, InputUsername);

                Assert.IsTrue(Math.Abs(result - 0.500) < 0.0000001);
            }
예제 #2
0
            public void ShouldReturnJaroWinklerDistanceOf1()
            {
                var result = JaroWinklerDistance.CalculateProximity(InputPassword, InputPassword);

                Assert.IsTrue(Math.Abs(result - 1.0) < 0.0000001);
            }