public void Matches_should_detect_strings_string_comparison(string s) { var subj = new BetweenMatcher <string>("A", "x", StringComparer.OrdinalIgnoreCase); Assert.True(subj.Matches(s)); }
public void Matches_should_apply_approximation() { var subj = new BetweenMatcher <double>(5.0, 5.5).OrClose(0.03); Assert.True(subj.Matches(4.99)); }
public void Matches_should_detect_strings_nominal() { var subj = new BetweenMatcher <string>("a", "z"); Assert.True(subj.Matches("a")); }