![]() |
Imt.Base C++ API V4.1.1.0
|
Base class for all UnitTests which use the mocking infrastructure. More...
#include <Imt.Base.Dff.UnitTest.Helper/inc/Imt.Base.Dff.UnitTest.Helper/MockTestBase.h>
Public Member Functions | |
| void | baseSetUp () |
| Setup test. | |
| void | baseTearDown () |
| Tear down test. | |
Public Member Functions inherited from unitTestHelper::TestBase | |
| virtual void | testBaseSetUp () |
| Setup test. | |
| virtual void | testBaseTearDown () |
| Tear down test. | |
Static Public Member Functions | |
| static void | baseAssemblySetUp (TestContext ^ context) |
| Setup assembly. | |
| static void | baseAssemblyTearDown () |
| Test assembly cleanup. | |
Static Public Member Functions inherited from unitTestHelper::TestBase | |
| static void | testBaseAssemblySetUp () |
| Setup test assembly. | |
| static void | testBaseAssemblyTearDown () |
| Tear down test assembly. | |
Protected Member Functions | |
| virtual void | assertNoMessagesSent () |
| Asserts that no messages have been sent on any channel. | |
| void | assertUnexpectedMessage (::imt::base::dff::activeparts::test::ChannelMockIn *pChannelIn, uint16_t protocolId) |
| Asserts that a debug assertion is triggered on the given message. | |
| void | assertUnexpectedTimer (::imt::base::dff::activeparts::test::ChannelMockIn *pChannelIn) |
| Asserts that a debug assertion is triggered on a timer event. | |
Base class for all UnitTests which use the mocking infrastructure.
Clears the runtime mock and activates the memory leak detector.
Definition at line 35 of file MockTestBase.h.
|
inlineprotectedvirtual |
Asserts that no messages have been sent on any channel.
Must be implemented in the actual test class.
Definition at line 90 of file MockTestBase.h.
|
inlineprotected |
Asserts that a debug assertion is triggered on the given message.
| pChannelIn | test message is send over this channel. |
| protocolId | protocol identifier to test with. |
Definition at line 99 of file MockTestBase.h.
|
inlineprotected |
Asserts that a debug assertion is triggered on a timer event.
| pChannelIn | passed message is send over this channel. |
Definition at line 115 of file MockTestBase.h.
|
inlinestatic |
|
inlinestatic |
Test assembly cleanup.
Definition at line 80 of file MockTestBase.h.
|
inline |
Setup test.
Definition at line 56 of file MockTestBase.h.
|
inline |
Tear down test.
Definition at line 69 of file MockTestBase.h.