Category Archives: testing

F# Object Expressions vs Mocking Libraries: Am I Missing Something?

Object expressions are a cool feature of F#. For those unfamiliar, they allow you to easily instantiate anonymous classes: There are times when it’s useful to instantiate anonymous classes in this fashion (a topic for another post), but I’m not convinced that mocking is one of them. However, based on based on a couple of […]

Also posted in F#, Unit Testing | 2 Comments

Writing BDD-Style tests in F# with xUnit.net

Recently, I’ve been exploring different options for testing in F#. I was pleased to find out that there has been some good work done in this space already: Matthew Podowysoki’s Functional Programming Unit Testing series is a great overview of testing in F#. The FsUnit project is a specification style testing framework written in F#. […]

Also posted in F#, xunit | Leave a comment