1.2.5. Expectation Map

In addition to ExpectationSet there is a map oriented class which uses key/value pairs. The comparison is done only with the key, the value itself is ignored.


  ExpectationMap <int, std::string> em ("verifyMap", 0);

  em.addExpected(1, "one");
  em.addExpected(2, "two");
  em.addExpected(3, "three");

  em.addActual(3);
  em.addActual(2);
  em.addActual(1);