[Mono-list] Question about testing

J. Perkins jason@379.com
Fri, 26 Jul 2002 08:10:23 -0400


Here you go, another newbie question...

I need to implement the 'Environment.OSVersion' getter in corlib.
So I read through the contribution howto, and all about testing,
but I'm little uncertain how to test this particular function.
In order to for the test to determine the expected return values,
it has to know what OS it's running on. In order to determine the
OS, it will have to run exactly the same code as the getter it is
supposed to be testing. So if getter is broken, the test will be
broken too! Any suggestions on how to proceed?

Of course, I still haven't been able to build corlib on my own
box yet, so first things first.

Jason
379