[Mono-list] Need feedback on NUnit testcase
Wed, 8 May 2002 01:11:01 +0900
| I've just begun writing a testcase for System.Convert and got some
questions since it is my first test.
| I would like to sign up to do the test for System.Convert. If it is
Please do. I don't remember anyone else volunteering for this one.
| The code
Be careful of what you are testing. For instance, I wouldn't rely on
Int16().GetTypeCode() to get the expected value for the TypeCode. I
would use TypeCode.Int16 directly as it's much more "reliable" being as
it's just an enum and not a method.
And yes, you should have a test for every overload. Not only that, but
we desperately need tests for all the cases where an exception should be
thrown. The MSDN docs generally are a very good about listing those.
Thanks for your help.