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"); }
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"); }