FB_TestFinishedNamedDoesNotExist  Function Block

Extends TcUnit.FB_TestSuite

This FB tests the free function TEST_FINISHED_NAMED. Calling this function with a name that doesn't exist should produce an error message that says so. This error message should also only be printed once.


Methods

Test_FinishedNamed PRIVATE
Implementation
TEST('Test_FinishedNamed');

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

TEST_FINISHED_NAMED('AnotherTestNameThatDoesNotExist');
Declaration source
(*
    This FB tests the free function TEST_FINISHED_NAMED. Calling this function with a name that doesn't exist should
    produce an error message that says so. This error message should also only be printed once.
*)
FUNCTION_BLOCK FB_TestFinishedNamedDoesNotExist EXTENDS TcUnit.FB_TestSuite
VAR
END_VAR