コード例 #1
0
        public void Matches_should_detect_string_length_nominal()
        {
            var subj = new HaveLengthMatcher(2);

            Assert.True(subj.Matches("ab"));
        }
コード例 #2
0
        public void Matches_should_detect_array_length_nominal()
        {
            var subj = new HaveLengthMatcher(2);

            Assert.True(subj.Matches(new [] { 1, 2, }));
        }