FB_MultipleAssertWithSameParametersInSameCycleWithSameTest  Function Block

Extends TcUnit.FB_TestSuite

This test-suite runs several asserts with the same parameters (same expected, actual, message) in the same cycle and in the same test. The reason we want the framework to support this is that theoretically the user could want to do an assert with the same message, in the same test, with the same data values for both expected and actual, although the data that the user does the assert on might be from different data sets.


Methods

Assert_SeveralTimes PRIVATE
Implementation
TEST('Assert_SeveralTimes');

AssertEquals_DWORD(Expected := a,
                   Actual := b,
                   Message := 'Values differ');

AssertEquals_DWORD(Expected := c,
                   Actual := d,
                   Message := 'Values differ');

AssertEquals_DWORD(Expected := e,
                   Actual := f,
                   Message := 'Values differ');

TEST_FINISHED();

Used by

Declaration source
(*
    This test-suite runs several asserts with the same parameters (same expected, actual, message) in the same cycle
    and in the same test.
    The reason we want the framework to support this is that theoretically the user could want to do an assert with the
    same message, in the same test, with the same data values for both expected and actual, although the data that the
    user does the assert on might be from different data sets.
*)
FUNCTION_BLOCK FB_MultipleAssertWithSameParametersInSameCycleWithSameTest EXTENDS TcUnit.FB_TestSuite