示例#1
0
        internal void CalledWith(int counter, string methodName, params object[] args)
        {
            var memberInvocation = new MemberInvocation {
                Name = methodName, Parameters = args, IsMethod = true
            };

            Assert.AreEqual(counter, this.memberInvocations.Count(m => memberInvocation.Equals(m)), "Checking '" + methodName + "' has been called " + counter + " times with parameters");
        }
示例#2
0
        internal void CalledWith(string methodName, params object[] args)
        {
            var memberInvocation = new MemberInvocation {
                Name = methodName, Parameters = args, IsMethod = true
            };

            Assert.IsTrue(this.memberInvocations.Any(m => memberInvocation.Equals(m)), "Checking '" + methodName + "' has been called with parameters");
        }