public void Instantiate_ExactNameInt32_Instantiated()
        {
            var tolerance = new TextToleranceFactory().Instantiate("LevenshteinDistance(0.8)");

            Assert.That(tolerance, Is.TypeOf <TextTolerance>());
            Assert.That(tolerance.Style, Is.EqualTo("Levenshtein distance"));
            Assert.That(tolerance.Value, Is.EqualTo(0.8).Within(0.001));
            Assert.That(tolerance.Implementation, Is.Not.Null);
            Assert.That(tolerance.Implementation("alpha", "alpha"), Is.EqualTo(0));
        }
        public void Instantiate_StartsWithCasingNameInt32_Instantiated()
        {
            var tolerance = new TextToleranceFactory().Instantiate("hamming(0.8)");

            Assert.That(tolerance, Is.TypeOf <TextTolerance>());
            Assert.That(tolerance.Style, Is.EqualTo("Hamming distance"));
            Assert.That(tolerance.Value, Is.EqualTo(0.8).Within(0.001));
            Assert.That(tolerance.Implementation, Is.Not.Null);
            Assert.That(tolerance.Implementation("alpha", "alpha"), Is.EqualTo(0));
        }
        public void Instantiate_ExactNameWithSpaceDouble_Instantiated()
        {
            var tolerance = new TextToleranceFactory().Instantiate("jaccard disTance(0.8)");

            Assert.That(tolerance, Is.TypeOf <TextTolerance>());
            Assert.That(tolerance.Style, Is.EqualTo("Jaccard distance"));
            Assert.That(tolerance.Value, Is.EqualTo(0.8).Within(0.001));
            Assert.That(tolerance.Implementation, Is.Not.Null);
            Assert.That(tolerance.Implementation("alpha", "alpha"), Is.EqualTo(0));
        }