Skip to content

Commit

Permalink
migrate test to axunit-st
Browse files Browse the repository at this point in the history
  • Loading branch information
sjuergen committed Jan 19, 2024
1 parent 450b4f3 commit 2a091f0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion test/Input/BinSignalExtTest.st
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 8 additions & 1 deletion test/Input/BinSignalTest.st
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2a091f0

Please sign in to comment.