コード例 #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));
        }
コード例 #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));
        }
コード例 #3
0
        public void Matches_should_detect_strings_nominal()
        {
            var subj = new BetweenMatcher <string>("a", "z");

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