TcUnitVerifier

30 objects — 28 function blocks  1 function  1 GVL 


Function Blocks

NameDescription
FB FB_ProtectedVariablesContains different types of "protected" variables that you could not normally write to in production PLC code, but...
FB FB_AdjustAssertFailureMessageToMax253CharLengthTestThis testsuite tests the function block FB_AdjustAssertFailureMessageToMax255CharLength_Test The total printed...
FB FB_AnyPrimitiveTypesThis testsuite tests the different assert-functions for all the primitive data types in TwinCAT, but using the...
FB FB_AnyToUnionValueTests the free function F_AnyToUnionValue.
FB FB_ArrayPrimitiveTypesThis testsuite tests the different assert-functions for all the different type of arrays (varying by the different...
FB FB_AssertCountExceedsMaxNumberThis test-suite runs several asserts with the same parameters (same expected, actual, message), calling the asserts...
FB FB_AssertEveryFailedTestTwiceIn this testsuite we are running the same testcase over two cycles, and thus calling every assert method twice. This...
FB FB_AssertEveryFailedTestTwiceArrayVersionIn this testsuite we are running the same testcase over two cycles, and thus calling every assert method twice. This...
FB FB_AssertTrueFalseThis testsuite verifies that the Assert_True and Assert_False methods do what they are supposed to. It does so by...
FB FB_CheckIfSpecificTestIsFinishedVerifies that the function IS_TEST_FINISHED('Name') works as intended.
FB FB_CreateDisabledTestThis testsuite runs two tests. One that is enabled (and that is supposed to fail), and one that is disabled (and...
FB FB_CreateFourTestsWithSameNameThis testsuite creates four tests in the same testsuite with the same name. Every test in a testsuite should have an...
FB FB_EmptyAssertionMessageThis testsuite creates a failed test with an empty assertion message
FB FB_EmptyTestSuiteThis is an empty testsuite with no test cases, so that we can verify that the system still prints the test results.
FB FB_ExtendedTestInformationThis test suite makes sure to create different variants of tests that will produce various extended logs, i.e. the...
FB FB_MultipleAssertWithSameParametersInDifferentCyclesAndInSameTestThis test-suite runs several asserts with the same parameters (same expected, actual, message), calling the asserts...
FB FB_MultipleAssertWithSameParametersInDifferentCyclesButWithDifferentTestsThis test-suite runs several asserts with the same parameters (same expected, actual, message), calling the asserts...
FB FB_MultipleAssertWithSameParametersInSameCycleWithSameTestThis test-suite runs several asserts with the same parameters (same expected, actual, message) in the same cycle and...
FB FB_PrimitiveTypesThis testsuite tests the different assert-functions for all the different data types in TwinCAT. For every data type...
FB FB_SkipAssertionsWhenFinishedContains tests that require multiple cycles: - A short test that finishes quickly - The assert statements all pass...
FB FB_TestDurationMeasurementThis testsuite tests that durations are calculated correctly by different types of test cases Tests are considered...
FB FB_TestFileControlContains tests that verify the FileControl function block methods
FB FB_TestFinishedNamedThis function blocks tests the TEST_FINISHED_NAMED function by creating various tests and finishing them in steps
FB FB_TestFinishedNamedDoesNotExistThis FB tests the free function TEST_FINISHED_NAMED. Calling this function with a name that doesn't exist should...
FB FB_TestNumberOfAssertionsCalculationThis testsuite verifies that the number of assertions for every testcase is correctly calculated
FB FB_TestStreamBufferContains tests that verify the StreamBuffer function block methods
FB FB_TestXmlControlContains tests that verify the XmlControl function block methods
FB FB_WriteProtectedFunctionsThis testsuite tests the WRITE_PROTECTED_* helper functions.

Functions

NameDescription
FN PRG_TEST

Global Variable Lists

NameDescription
GVL Global_VersionThis function has been automatically generated from the project information.