コード例 #1
0
        public void Matches_should_dispose_of_enumerator()
        {
            var subj = new EmptyMatcher();
            var item = new PHasDisposableEnumerator();

            subj.Matches(item);
            Assert.True(item.LastEnumerator.IsDisposed);
        }
コード例 #2
0
        public void Matches_should_detect_non_empty_nominal()
        {
            var subj = new EmptyMatcher();

            Assert.False(subj.Matches("abc"));
        }
コード例 #3
0
        public void Matches_should_allow_null_and_detect_nominal()
        {
            var subj = new EmptyMatcher();

            Assert.False(subj.Matches((string)null));
        }
コード例 #4
0
        public void Matches_should_detect_empty_nominal()
        {
            var subj = new EmptyMatcher();

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