Microsoft F# and TestDriven.Net 2.16

Now that F# is being officially productized, I thought it was time to make it a first class citizen inside TestDriven.Net.

When learning a new language I like to experiment by writing ad-hoc tests and viewing my code inside .NET Reflector. My initial focus has been getting 'Go To Reflector' and the targeting of parameterless methods and properties working.

You can get the latest release of F#, including the compiler, tools, and Visual Studio 2008 integration from the F# Developer Center. You will also need TestDriven.Net 2.16 or above.

The F# team has put together a collection of F# sample code. The samples come with their own 'F# Micro Samples Explorer' application, but they are also ideal for running as ad-hoc tests. In particular have a look at the 'beginners.fs' and 'intermediate.fs' modules in the 'Samples101' project.


To view the code using .NET Reflector, simply right click inside a method, property, module or project and 'Go To Reflector'.


At the moment only parameterless methods and properties are supported. This is due to the way F# makes extensive use of type inferencing for parameters. Luckily it is parameterless methods and properties that it makes most sense to target for evaluation or running as unit tests. I'll talk more about unit testing F# code in a future post.


Published Friday, October 10, 2008 6:42 AM by Jamie Cansdale


# re: Microsoft F# and TestDriven.Net 2.16

Microsoft f and testdriven net 2 16.. Dandy :)

Thursday, May 19, 2011 2:03 AM by

# re: Microsoft F# and TestDriven.Net 2.16

You have more useful info than the British had coolnies pre-WWII.

Tuesday, September 27, 2011 9:38 AM by Chubby

# re: Microsoft F# and TestDriven.Net 2.16

This has made my day. I wish all potsnigs were this good.

Wednesday, September 28, 2011 8:51 PM by Rennifer

# re: Microsoft F# and TestDriven.Net 2.16

pIUXw1 I appreciate you sharing this blog.Much thanks again.

Thursday, May 3, 2012 3:44 AM by buy oem software

# re: Microsoft F# and TestDriven.Net 2.16

Aw, this was an exceptionally nice post. Spending some time and actual effort to make a very good article… but what can I say… I put things off a whole lot and don’t manage to get nearly anything done.

Monday, April 1, 2013 1:49 PM by