shouldNotBeIn

Verify that the value is not in the container.

  1. void shouldNotBeIn(T value, U container, string file, size_t line)
    void
    shouldNotBeIn
    (
    T
    U
    )
    (
    const auto ref T value
    ,
    const auto ref U container
    ,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )
  2. void shouldNotBeIn(T value, U container, string file, size_t line)

Throws

UnitTestException on failure

Examples

5.shouldNotBeIn([4: "foo"]);

struct AA {
    int onlyKey;
    bool opBinaryRight(string op)(in int key) const {
        return key == onlyKey;
    }
}

5.shouldNotBeIn(AA(4));

Meta