diff --git a/test/Input/BinSignalExtTest.st b/test/Input/BinSignalExtTest.st index 62f54d0..5513b08 100644 --- a/test/Input/BinSignalExtTest.st +++ b/test/Input/BinSignalExtTest.st @@ -8,9 +8,16 @@ NAMESPACE Simatic.Ax.IO.Input.Test {TestFixture} CLASS BinSignalExtTest VAR - o : BinSignalExt; + o : BinSignalExt; + oStateLess : BinSignalExt; END_VAR + {TestSetup} + METHOD PUBLIC MyTestSetup + // Will be called before MyTest_A AND before Test_B are executed + o := oStateLess; + END_METHOD + {Test} METHOD PUBLIC TestQ_And_expect_true o.ReadCyclic(signal := TRUE); diff --git a/test/Input/BinSignalTest.st b/test/Input/BinSignalTest.st index edcff49..fdf7319 100644 --- a/test/Input/BinSignalTest.st +++ b/test/Input/BinSignalTest.st @@ -8,9 +8,16 @@ NAMESPACE Simatic.Ax.IO.Input.Test {TestFixture} CLASS BinSignalTest VAR - o : BinSignal; + o : BinSignal; + oStateLess : BinSignalExt; END_VAR + {TestSetup} + METHOD PUBLIC MyTestSetup + // Will be called before MyTest_A AND before Test_B are executed + o := oStateLess; + END_METHOD + {Test} METHOD PUBLIC TestQ_And_expect_true o.ReadCyclic(signal := TRUE);