Persimmon


TestCase

Namespace: Persimmon
Attributes:
[<CompilationRepresentation(4)>]

Test case manipulators.

Functions and values

Function or valueDescription
addNotPassed line notPassedCause x
Signature: line:int option -> notPassedCause:NotPassedCause -> x:TestCase<'a> -> TestCase<'a>
Type parameters: 'a

Add not passed test after test.

combine x rest
Signature: x:TestCaseType<'T> -> rest:('T -> TestCase<'U>) -> TestCase<'U>
Type parameters: 'T, 'U

Combine tests.

init(...)
Signature: name:string option -> categories:seq<string> -> parameters:seq<Type * obj> -> asyncBody:(TestCase<'a> -> Async<TestResult<'a>>) -> TestCase<'a>
Type parameters: 'a

Create test case manually.

makeDone name categories parameters x
Signature: name:string option -> categories:seq<string> -> parameters:seq<Type * obj> -> x:AssertionResult<'a> -> TestCase<'a>
Type parameters: 'a

Create always completion test case.

makeError name categories parameters exn
Signature: name:string option -> categories:seq<string> -> parameters:seq<Type * obj> -> exn:ExceptionWrapper -> TestCase<'a>
Type parameters: 'a

Create always error test case.

Fork me on GitHub