FsCheck


FsCheck Namespace

Type/Module Description

Arbitrary<'T>

Check

CheckExtensions

Config

For configuring a run.

ConfigExtensions

DoNotShrink<'a>

Use the generator for 'a, but don't shrink.

DoNotSize<'a>

Whereas most types are restricted by a size that grows as the test gets further, by applying this type the underlying type will ignore this size and always generate from the full range. Note that this only makes a difference for types that have a range - currently integer types, TimeSpan and Decimal have DoNotSize Arbitrary instances. This is typically (and at least currently) only applicable for value types that are comparable, hence the type constraints.

FixedLengthArray<'T>

Represents an array whose length does not change when shrinking.

Function<'a, 'b>

A function (F# function) that can be displayed and shrunk.

Gen<'T>

Generator of a random value, based on a size parameter and a randomly generated int.

HostName

IArbMap

Maps types to Arbitrary instances for that type. Once constructed, the map is immutable.

Interval

Represents an integer interval.

IntWithMinMax

Represents an int that can include int.MinValue and int.MaxValue.

IPv4Address

IPv6Address

IRunner

For implementing your own test runner.

NegativeInt

Represents an int < 0

NonEmptyArray<'T>

Represents a non-empty array.

NonEmptySet<'T>

Represents a non-empty Set.

NonEmptyString

Represents a string that is not null or empty, and does not contain any null characters ('\000')

NonNegativeInt

Represents an int >= 0

NonNull<'a>

Wrap a type in NonNull to prevent null being generated for the wrapped type.

NonWhiteSpaceString

NonZeroInt

Represents an int <> 0

NormalFloat

Represents a float that is not NaN or Infinity.

Outcome

ParallelRunConfig

PositiveInt

Represents an int > 0

Property

A Property can be checked by FsCheck.

Replay

Result

The result of one execution of a property.

ResultContainer

Rnd

Runner

StringNoNullChar

Represents a string that does not contain null characters ('\000')

TestData

TestResult

ThrowingFunction<'a, 'b>

UnicodeChar

Represents a unicode char.

UnicodeString

Represents a string that can contain unicode characters.

XmlEncodedString

Represents a string that can be serializable as a XML value.