ExpectNot.toContain

Succeeds if received doesn't contain the fobidden element or sub-range, or if it doesn't contain any elements satisfying the given predicate.

The predicate overload takes a function whose return type is bool, and whose single parameter is of a type that received's elements can implicitly convert to.

  1. void toContain(TExpected forbidden)
    struct ExpectNot(TReceived)
    void
    toContain
    (
    TExpected
    )
    (
    TExpected forbidden
    )
    if (
    __traits(compiles, received.countUntil(forbidden))
    )
  2. void toContain(bool delegate(const(ElementType!TReceived)) predicate)

Meta