Limitations - Manual - AxUnit - AxUnit - AxUnit,

AxUnit (legacy) CLI Tool (test)

Portfolio
SIMATIC AX
Product
AxUnit
Software version
2.0.9
Edition
08/2025
Language
English (original)
Package Name
@ax/axunit-docs
  • AxUnit supports mocking of A only if B is part of source code under compilation. This means in particular, that the mock setup of A will not work for B which is imported from library.
  • AxUnit.Mocking.Mock function supports only literals or name_of expressions as parameters.
  • For mocking methods, the mock method should be defined in the same test fixture class where the mock setup is done.