|
by Keyvan Nayyeri via Keyvan Nayyeri on 6/2/2007 5:26:09 PM
[Update: Jason Stangroome has a valuable comment on my post to improve its performance.] While unit testing BlogML project, I faced with some classes that hadn't overridden Object.Equals() method to let me run my tests so I had to override this method for them. For some classes with a few properties this was easy but suddenly I saw a few classes with more than 3-4 properties and class itself was a collection. Thus, I had to iterate through its items and check them one
... [ read more ]
|