October 13, 2011
Creating Mocks with F# Object Expressions
When I read about F# object expressions, the first thought that popped into my head was to use them to create mocks for unit tests. For those of you who are not familiar with object expressions, they are similar to anonymous classes in Java. They are the object equivalent of lambda functions, and they allow you to create objects that implement an interface or base class without having to declare a new class.
Read more