When called with no arguments, this method simply checks that the subject
produced any value.
With a single argument, it checks that a value matching the argument was
produced.
With two arguments, it checks that a key and value matching the
respective arguments were produced together.