I am using xUnit 1.0 and F# 1.9.4.15. After referencing the xUnit dll and opening the namespace I added several tests with the [<Fact>] attribute to my project (all simple Assert.Equal), built a dll and then ran the xunit console runner on the dll - but the console runner did not find any tests? I also tried running tests via TDD.NET in Visual Studio but that also failed to find any tests.
For troubleshooting I set up a project in C# with the same xUnit dll referenced, wrote a quick test and ran it no problem from both the xunit console runner and TDD.NET. I am new to F# so I suspected that my code might be the problem - so I also set up and built a dll with the code here:
http://weblogs.asp.net/podwysocki/archive/2008/04/04/relooking-at-xunit-net-rc2.aspx
but I had the same result - neither the console runner or TDD.NET saw any tests in the code.
Has anyone else had this problem or recognize what I am doing that is causing the tests not to be seen by the test runner? I am fairly new to F# so maybe something really simple?
Any help appreciated!
Charles Miles