Esempio n. 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);
        }
Esempio n. 2
0
        public void Matches_should_detect_non_empty_nominal()
        {
            var subj = new EmptyMatcher();

            Assert.False(subj.Matches("abc"));
        }
Esempio n. 3
0
        public void Matches_should_allow_null_and_detect_nominal()
        {
            var subj = new EmptyMatcher();

            Assert.False(subj.Matches((string)null));
        }
Esempio n. 4
0
        public void Matches_should_detect_empty_nominal()
        {
            var subj = new EmptyMatcher();

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