Xunit using F#

by sunil ravulapalli /17. May 2014 06:01 /.net /Comments (0)

Create new F# Library project. Install Xunit from Nuget Create a class called MyTest.fs like this

module MyTests  
open Xunit

type myTest1() = class

    []
    member self.myTest() =
       Assert.Equal(1, 1);

end  

Build it, and then, just right click any where on the myTest1 method and choose Run Test. In the Test Explorer Window you should see the test run succesfully.

blog comments powered by Disqus