예제 #1
0
        public static T Is <T>(Predicate <T> predicate)
        {
            SubstituteContext.AddArgumentMatcher(
                new PredicateArgumentMatcher <T>(predicate));

            return(default(T));
        }
예제 #2
0
        public static T Any <T>()
        {
            SubstituteContext.AddArgumentMatcher(
                new AnyArgumentMatcher <T>());

            return(default(T));
        }
예제 #3
0
        public static T Is <T>(T value)
        {
            SubstituteContext.AddArgumentMatcher(
                new IsArgumentMatcher <T>(value));

            return(default(T));
        }