From 2a091f0b755947691c2e085ee6ccd95d8cfcec66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Seidel?= Date: Fri, 19 Jan 2024 13:39:37 +0100 Subject: [PATCH] migrate test to axunit-st --- test/Input/BinSignalExtTest.st | 9 ++++++++- test/Input/BinSignalTest.st | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) 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);