all current tests clean

This commit is contained in:
Jonas Zeunert
2018-07-11 17:03:57 +02:00
parent ddb6d445dd
commit 93af466bef

View File

@@ -58,19 +58,21 @@ SCENARIO("An EventHandler gets [un]registered at the notifier", "[un-register no
{
REQUIRE(*notifier.event_handler.begin() == &event_handler_mock.get());
}
}
WHEN("The EventHandler gets unregistered at the driver")
{
REQUIRE(!notifier.event_handler.empty());
notifier.unregister_event_handler(&event_handler_mock.get());
THEN("The unregister_event_handler at the event_notifier gets called")
AND_WHEN("The EventHandler gets unregistered at the driver")
{
REQUIRE(notifier.event_handler.empty());
REQUIRE(!notifier.event_handler.empty());
notifier.unregister_event_handler(&event_handler_mock.get());
THEN("The list of event_handlers is empty")
{
REQUIRE(notifier.event_handler.empty());
}
}
}
}
}
@@ -103,7 +105,7 @@ SCENARIO("The EventHandler gets notified")
Fake(Dtor(event_handler_mock));
EventNotifier notifier;
notifier.event_handler.emplace(&event_handler_mock.get());
WHEN("The event gets queued")
{