jaredpar's WebLog

Code, rants and ramblings of a programmer.

Browse by Tags

Tagged Content List
  • Blog Post: Making Equality Testing Simple

    Getting equality correct on a .Net type is a fairly involved process involving adherence to a large set of rules in order to be considered correct.  Including Object.Equals overrides on reference types must return false for null values Object.Equals overrides must return false for incompatible types...
  • Blog Post: A Lesson in Serialization

    A few days ago, I recklessly added a [Serialization] attribute to a few of my immutable collection types.  I needed to pass data between AppDomain's and adding [Serialization] was the quick and dirty fix.  Compiled, ran and I didn't think much about it.  Luckily I was updating some unit...
  • Blog Post: Simple class for tests involving a SynchronizationContext

    Recently I had to test a class which heavily depended upon a SynchronizationContext .  This threw me off for about half an hour as I didn't want to write multi-threaded unit tests.  Multi-threaded code is difficult enough without adding needless threads.  The solution I came up with is...
  • Blog Post: ISynchronizeInvoke ... now

    ISynchronizeInvoke is an interface which allows you to execute a delegate synchronously or asynchronously. The implementer of the interface can control how the delegate is executed. In particular the implementer controls on which thread the delegate is executed. It's common for thread sensitive objects...
  • Blog Post: Testing your code

    This is a little off topic from my typical purely technical discussion. I'm a huge advocate of automated code verification. Unit testing is preferred but really any method is acceptable as long as it gets the job done of testing your code. IMHO, testing is the most important part of a developers job...
Page 1 of 1 (5 items)