9. your trusted software partner
CMM
www.itsoft.com.eg
9
info@itsoft.com.eg
Level 3®
Verify
PC-COF
Partial runs are possible
Consistent results on every test run
Configuration is unneeded before run
Order of tests does not matter
Fast run time
10. your trusted software partner
CMM
www.itsoft.com.eg
10
info@itsoft.com.eg
Level 3®
Verify
PC-COF
Partial runs are possible
Consistent results on every test run
Order of tests does not matter
Fast run time
Configuration is unneeded before run
11. your trusted software partner
CMM
www.itsoft.com.eg
11
info@itsoft.com.eg
Level 3®
Verify
Don't inherit from classes you can't control.
Encapsulate and wrap it up.
Make methods virtual by default.
Don't use 'Sealed' unless you really have to.
Add a setter to the singleton instance.
Make sure a singleton always return an interface
rather than a concrete class.
Use internal keyword to hide setters from
production code, but visible to test code.
If possible, create an interface per class. You
never know when you're gonna need it.