I'm loathe to say it (loathe because I prefer to use Rhino Mocks), but I personally feel that the Moq framework's error message is the best one, it tells me exactly what the error was and it also points to the line in my test that caused it.
With regards to which is the more human friendly, I don't really feel there is any difference between the three since they are all easily understandable and they all tell us what the cause of the error was. I'm not entirely sure what you mean when asking "are errors important" ... if you are asking if it is important to tell the user when an error has occured, then the answer is clearly "yes". If you are asking whether or not it is important to tell the user what caused the error, then the answer is clearly "yes", if you are asking whether or not it is important to have errors in your code, then the answer is clearly "no". With regards to the comment "one can get used to the current ones", that would only really happen if the user consistently made the same mistake, which would indicate that they really ought to work in a different field since (at least in this example) once the mistake has been made and the rule is understood, this kind of error would not re- ocur during your day to day coding (unless you are Mocking objects from an assembly which you do not own, which is generally regarded as a bad practice anyhow). Further, should one find themselves encountering this error on a regular basis, there is really no option to simply ignore the error, since the test will always fail. How can the developer continue without making the test pass? When you are writing your code in a TDD manner, I doubt you would ever encounter this particular error. The occurrence of this particular exception says to me that the test has been retro-fitted around the particular piece of code. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en -~----------~----~----~----~------~----~------~--~---
