shouldNotBeIn

Verify that the value is not in the container.

  1. void shouldNotBeIn(T value, U container, string file, size_t line)
  2. void shouldNotBeIn(T value, U container, string file, size_t line)
    void
    shouldNotBeIn
    (
    T
    U
    )
    (
    in T value
    ,,
    in string file = __FILE__
    ,
    in size_t line = __LINE__
    )
    if (
    !isAssociativeArray!U &&
    isInputRange!U
    )

Throws

UnitTestException on failure

Examples

shouldNotBeIn(3.5, [1.1, 2.2, 4.4]);
shouldNotBeIn(1.0, [2.0 : 1, 3.0 : 2]);

Meta