Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TDD - Test for failed case only?
Message
From
24/05/2007 02:55:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
TDD - Test for failed case only?
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01228156
Message ID:
01228156
Views:
74
Hi,
WHile creating test, should we write test code for pass and also fail scenario?

For example, If my class must not accept ZERO value for fieldA. I write test to check is the rule passed. Should I write test for scenario the test should fail?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Next
Reply
Map
View

Click here to load this message in the networking platform