Skip to content

Commit faf07f9

Browse files
committed
Added unit test for MockActualCallsList::hasFinalizedMatchingExpectations().
1 parent 3999548 commit faf07f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/CppUTestExt/ExpectedFunctionsListTest.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,13 @@ TEST(MockExpectedCallsList, toStringOnEmptyList)
283283
{
284284
STRCMP_EQUAL("<none>", list->unfulfilledCallsToString().asCharString());
285285
}
286+
287+
TEST(MockExpectedCallsList, hasFinalizedMatchingExpectations)
288+
{
289+
call1->ignoreOtherParameters();
290+
list->addExpectedCall(call1);
291+
CHECK(! list->hasFinalizedMatchingExpectations());
292+
293+
call1->finalizeActualCallMatch();
294+
CHECK(list->hasFinalizedMatchingExpectations());
295+
}

0 commit comments

Comments
 (0)