public void Matches_should_dispose_of_enumerator() { var subj = new EmptyMatcher(); var item = new PHasDisposableEnumerator(); subj.Matches(item); Assert.True(item.LastEnumerator.IsDisposed); }
public void Matches_should_detect_non_empty_nominal() { var subj = new EmptyMatcher(); Assert.False(subj.Matches("abc")); }
public void Matches_should_allow_null_and_detect_nominal() { var subj = new EmptyMatcher(); Assert.False(subj.Matches((string)null)); }
public void Matches_should_detect_empty_nominal() { var subj = new EmptyMatcher(); Assert.True(subj.Matches("")); }