public void When_NameMapDoesNotContainAKey_ThatCorrespondsToAGivenMerchantName__Must_Return_False(
            IDictionary <string, string[]> map,
            string merchantName,
            string detailsString)
        {
            var target = new MerchanNameVariationComparer(map);

            var result = target.IsMatch(merchantName, detailsString);

            Assert.IsFalse(result);
        }
        public void Should_CompareVariationsInACaseInsensitiveManner(
            IDictionary <string, string[]> map,
            string merchantName,
            string detailsString)
        {
            var target = new MerchanNameVariationComparer(map);

            var result = target.IsMatch(merchantName, detailsString);

            Assert.IsTrue(result);
        }
        public void When_MerchantNameIsMapped_AndDetailsStringDoesNotMatchAnyNameVariation__Should_Return_False(
            IDictionary <string, string[]> map,
            string merchantName,
            string detailsString)
        {
            var target = new MerchanNameVariationComparer(map);

            var result = target.IsMatch(merchantName, detailsString);

            Assert.IsFalse(result);
        }
        public void When_MerchantNameIsMapped_AndDetailsStringStartsWithOneOfNameVariations__Should_Return_True(
            IDictionary <string, string[]> map,
            string merchantName,
            string detailsString)
        {
            var target = new MerchanNameVariationComparer(map);

            var result = target.IsMatch(merchantName, detailsString);

            Assert.IsTrue(result);
        }