FB_AssertTrueFalse Function Block
Extends TcUnit.FB_TestSuite
This testsuite verifies that the Assert_True and Assert_False methods do what they are supposed to. It does so by making sure that every assert-method (assert_true & assert_false) does both one failing and one successful assert.
Methods
AssertThatINTsAreEqual
PRIVATE
Implementation
TEST('AssertThatINTsAreEqual');
AssertFalse(Condition := (a <> b),
Message := 'INTs are equal');
TEST_FINISHED();
AssertThatINTsAreNotEqual
PRIVATE
Implementation
TEST('AssertThatINTsAreNotEqual');
AssertFalse(Condition := (a = b),
Message := 'INTs are equal');
TEST_FINISHED();
AssertThatWORDsAreEqual
PRIVATE
Implementation
TEST('AssertThatWORDsAreEqual');
AssertTrue(Condition := (a = b),
Message := 'WORDs are not equal');
TEST_FINISHED();
AssertThatWORDsAreNotEqual
PRIVATE
Implementation
TEST('AssertThatWORDsAreNotEqual');
AssertTrue(Condition := (a <> b),
Message := 'WORDs are equal');
TEST_FINISHED();
Used by
Declaration source
(*
This testsuite verifies that the Assert_True and Assert_False methods do what they are supposed to. It does so
by making sure that every assert-method (assert_true & assert_false) does both one failing and one successful
assert.
*)
FUNCTION_BLOCK FB_AssertTrueFalse EXTENDS TcUnit.FB_TestSuite