Пример #1
0
        /// <summary>
        /// Add a matcher onto a Collection continuation
        /// </summary>
        /// <param name="continuation">Continuation to add matcher to</param>
        /// <param name="matcher">Matcher to run</param>
        /// <typeparam name="T">Type of the object under test</typeparam>
        public static IMore <IEnumerable <T> > AddMatcher <T>(
            this ICanAddMatcher <IEnumerable <T> > continuation,
            Func <IEnumerable <T>, IMatcherResult> matcher
            )
        {
            AddMatcherPrivate(continuation, matcher);
            var more = continuation.More();

            continuation.CopyPropertiesTo(more);
            return(more);
        }