Parameter count mismatch in a Mocked method call
问题 I have this method: public void Valida(Validazione.IValidator<MyType> validator) { // do something... Validazione.IMapper<MyType> mapper = new MyTypeMapper(); ValidationResult result = validator.Validate(myTypeObj, mapper, new ValidationConfiguration()); // ...continue doing something else } that I want to unit test, so I would mock (using Moq framework) validator to steer the result of Validate method, so I wrote this unit test: [TestMethod] public void Long_test_name_as_best_practice() { //