You can supress the messages in the configuration file (/configuration/system.diagnostics/assert/@assertuienabled=false). I use it both in testing and in production. I also use a custom trace listener to make the test fail if an assertion fails: http://msmvps.com/blogs/paulomorgado/archive/2008/12/03/improving-debugging-and-testing-through-assertions.aspx

Advertisements