Skip to content

AssertionErrorOptions

[<Interface>]
type AssertionErrorOptions =
    abstract member actual: obj option with get, set
    abstract member diff: Diff option with get, set
    abstract member expected: obj option with get, set
    abstract member message: string option with get, set
    abstract member operator: string option with get, set
    abstract member stackStartFn: Function option with get, set
    static member Create (?message: string, ?actual: obj, ?expected: obj, ?operator: string, ?stackStartFn: Function, ?diff: Diff) : AssertionErrorOptions
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member actual: obj option with get, set

The actual property on the error instance.

abstract member diff: Diff option with get, set

If set to 'full', shows the full diff in assertion errors.

abstract member expected: obj option with get, set

The expected property on the error instance.

abstract member message: string option with get, set

If provided, the error message is set to this value.

abstract member operator: string option with get, set

The operator property on the error instance.

abstract member stackStartFn: Function option with get, set

If provided, the generated stack trace omits frames before this function.

Methods

static member Create (?message: string, ?actual: obj, ?expected: obj, ?operator: string, ?stackStartFn: Function, ?diff: Diff) : AssertionErrorOptions