|
5MinuteIntro
5-Minute Introduction to FsUnit
Featured Referencing FsUnitYou can make use of FsUnit in your project in one of two ways (choose either 1 or 2, you don't need to do both):
You will also need to grab a reference to the test framework that you are using, e.g., NUnit, MbUnit*, etc. Using FsUnitOnce you have a reference to FsUnit, you can create a test fixture and a test. All of the supported test frameworks work in the same manner: declare a new type and mark it as a test fixture then add a member to the type and mark it as a test. Here is an example of a simple test fixture and test in NUnit: [<TestFixture>]
type MyFixture() =
[<Test>]
member this.MyTest() =
true |> should be TrueCompile your project and run the results through your standard testing tools. * Not yet supported. |
► Sign in to add a comment