Example #1
0
        public void IntervalTest(string str, string expected)
        {
            var sut = new NumericStringFilter {
                Minimum = 1000, Maximum = 3000
            };
            var actual = sut.GetBestMatchFromRaw(str);

            Assert.Equal(expected, actual);
        }
Example #2
0
        public void NumericTest(string str, int min, int max, string expected)
        {
            var sut = new NumericStringFilter {
                MinLength = min, MaxLength = max
            };
            var actual = sut.GetBestMatchFromRaw(str);

            Assert.Equal(expected, actual);
        }
Example #3
0
 public void IntervalTest(string str, string expected)
 {
     var sut = new NumericStringFilter { Minimum = 1000, Maximum = 3000 };
     var actual = sut.GetBestMatchFromRaw(str);
     Assert.Equal(expected, actual);
 }
Example #4
0
 public void NumericTest(string str, int min, int max, string expected)
 {
     var sut = new NumericStringFilter { MinLength = min, MaxLength = max };
     var actual = sut.GetBestMatchFromRaw(str);
     Assert.Equal(expected, actual);
 }