[Mono-dev] Let's not compare exception messages in nunit tests

Atsushi Eno atsushi at ximian.com
Fri Jun 13 06:35:25 EDT 2008


Hey guys,

I have seen a lot of bad NUnit tests that unnecessarily compare
exception messages. They are wrong not only because they fail
in non-English Windows environment but also because those tests
will fail when Microsoft improves the messages. Furthermore, it
blocks possible message translation in the future.
They have been blocking me from checking NUnit test sanity. And
thanks to that, now we actually have a lot of wrong compatibility
assumptions in our own tests. (I don't say incompatibility is bad
but they do not have to be asserted unnecessarily.)

Let me repeat: let's not compare any localizable strings.

Atsushi Eno


More information about the Mono-devel-list mailing list