ExpectNot.toContainOnly

Succeeds if there is at least one elemt in received not equal to expected, or if at least one element in received doesn't satisfy 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 toContainOnly(TExpected expected)
    struct ExpectNot(TReceived)
    void
    toContainOnly
    (
    TExpected
    )
    (
    TExpected expected
    )
    if (
    __traits(compiles, rvalueOf!(ElementType!TReceived) == expected)
    )
  2. void toContainOnly(bool delegate(const(ElementType!TReceived)) predicate)

Meta