Ejemplo n.º 1
0
        public void Matches_should_detect_strings_string_comparison(string s)
        {
            var subj = new BetweenMatcher <string>("A", "x", StringComparer.OrdinalIgnoreCase);

            Assert.True(subj.Matches(s));
        }
Ejemplo n.º 2
0
        public void Matches_should_apply_approximation()
        {
            var subj = new BetweenMatcher <double>(5.0, 5.5).OrClose(0.03);

            Assert.True(subj.Matches(4.99));
        }
Ejemplo n.º 3
0
        public void Matches_should_detect_strings_nominal()
        {
            var subj = new BetweenMatcher <string>("a", "z");

            Assert.True(subj.Matches("a"));
        }