[Mono-dev] framework for system.web tests
Chris Toshok
toshok at ximian.com
Thu May 4 15:08:32 EDT 2006
I like this idea, definitely put it in svn. Maybe under the
Test/mainsoft directory until we start using it for the individual unit
tests?
One thing, though, We shouldn't ever write unit tests that use direct
string comparisons to validate generated html. The only real exception
(that I can think of) to this would be in verifying the behavior of
various output modes (xhtml, etc). There are unfortunately examples of
the string comparison stuff all over the system.web unit tests, just
waiting to be broken by an update to MS's System.Web that adds a space
someplace.
There's code in the System.Web unit tests to verify the structure of the
generated html, and I believe the other mainsoft tests use a similar
approach (first converting it to xml or something?)
I've fixed bug #78256, so things ought to work with mono now.
Nice hack.
Chris
More information about the Mono-devel-list
mailing list