示例#1
0
        public Core.OngoingStubbing With(params object[] arguments)
        {
            Core.MatcherList matchers = new MatcherList(arguments);
            returns[matchers] = new List <Core.StubAction>();

            return(new OngoingStubbing(arguments, returns[matchers]));
        }
示例#2
0
        public bool Equals(Core.MatcherList other_)
        {
            MatcherList other = (MatcherList)other_;

            if (this.matchers.Length != other.matchers.Length)
            {
                return(false);
            }

            for (int i = 0; i < this.matchers.Length; ++i)
            {
                if (!this.matchers[i].Equals(other.matchers[i]))
                {
                    return(false);
                }
            }

            return(true);
        }