资 源 简 介
ATTENTION
This project has moved to CodePlex
FsUnit is a library for use with the F# programming language. It is a set of extensions that add a special testing syntax (see below) to your favorite unit-testing framework so that you don"t have to learn a new testing framework but you also get to take advantage of everyone"s favorite new language.
Syntax
With FsUnit, you can write unit tests like this:
One object equals or does not equal another:
1 |> should equal 1
1 |> should not (equal 2)
A List, Seq, or Array instance contains or does not contain a value:
[1] |> should contain 1
[] |> should not (contain 1)
A List or Array instance has a certain length:
<