Examples
Runnable, self-checking .fsx scripts live under
examples/ in the repository.
Each one is a small, standalone walkthrough of one corner of the API that ends in assertions --
a wrong result is a non-zero exit, not a silent printfn nobody reads.
They also double as the FSI consumption test: unlike the NUnit suite, which links the library's
projects directly, these scripts exercise the library the way a consumer actually would --
#r'd into F# Interactive. dotnet fsi manage.fsx examples runs every script against the built
DLL; dotnet fsi manage.fsx examples --nupkg packs the library and runs them again against the
packed nupkg, which catches problems (a missing dependency, the wrong target framework) that a
direct DLL reference can't see.
Script |
Covers |
|---|---|
|
|
|
|
|
|
|
|
|
Run them yourself from the repository root:
dotnet fsi manage.fsx examples # against the built DLL
dotnet fsi manage.fsx examples --nupkg # against a freshly packed nupkg
Or run a single script directly once the DLL is built:
dotnet fsi examples/01-core.fsx
TDesu.FSharp