Geeks With Blogs
Denis Pitcher Denis Pitcher's Tech Blog November 2011 Entries
Comparison extension method for unit testing
In trying to comparing complex objects to confirm a unit test, I thought rather than going through the hassle of trying to implement IComparable or overriding .Equals that perhaps reflection would be a better means. A quick google search turned up some useful code that compares via reflection. This was close to what I wanted but I thought it’d be better to have it available as an extension method and I needed it in (excuse the horror) so this is what I came up with: <System.Runtime.Compiler... ......

Posted On Thursday, November 3, 2011 3:40 PM

Copyright © Denis Pitcher | Powered by: