Skip to content
grahamrhay edited this page Nov 11, 2010 · 2 revisions

#NonNullMatcher

Similar to the Matcher<T> base class, NonNullMatcher<T> provides a null check:

    public class SafeMatcher : NonNullMatcher<Biscuit>
    {
        // item is guaranteed not to be null
        protected override bool MatchesSafely(Biscuit item)
        {
            // test biscuit!
        }
    }
Clone this wiki locally