AssertExpectation<'T> Type
Describes how one quoted value should be validated, rendered, and explained when it fails.
An AssertExpectation is reusable. Build it once, then pass it to Assert.result,
Assert.should, or the Assert operator DSL.
In the DSL, expectations are usually applied with |>?, composed with <|>
and <&>, or used in readable multi-expectation lists with ||? and
&&?.
Record fields
| Record Field |
Description
|
Optionally explains why the expectation failed.
|
|
Full Usage:
Description
Field type: string
|
A human-readable description of the expected behavior.
|
|
Optionally provides structured nested details for rich rendering.
|
Formats the observed result for display in reports.
|
|
Full Usage:
Label
Field type: string
|
A short stable label used in reports and structured failure details.
|
Determines whether the observed result satisfies the expectation.
|
Static members
| Static member |
Description
|
Full Usage:
AssertExpectation.AndAlso(a, b)
Parameters:
AssertExpectation<'T>
-
The first required expectation.
b : AssertExpectation<'T>
-
The second required expectation.
Returns: AssertExpectation<'T>
An expectation that succeeds only when both input expectations succeed.
|
Combines two expectations so that both must succeed.
|
Full Usage:
AssertExpectation.OrElse(a, b)
Parameters:
AssertExpectation<'T>
-
The first alternative expectation.
b : AssertExpectation<'T>
-
The second alternative expectation.
Returns: AssertExpectation<'T>
An expectation that succeeds when either input expectation succeeds.
|
Combines two expectations so that either one may succeed.
|
testify