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
    )
    (
    in auto ref T value
    ,
    in auto ref U container
    ,
    in string file = __FILE__
    ,
    in 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