GuardedExit.sctunit 417 B

123456789101112131415161718192021222324252627282930313233
  1. testgroup GuardedExit for statechart GuardedExit {
  2. test ExitTaken {
  3. enter
  4. assert active(GuardedExit.main_region.A)
  5. assert ! guard
  6. raise e
  7. cycle
  8. assert active(GuardedExit.main_region.B)
  9. assert ! done
  10. }
  11. test ExitNotTaken {
  12. enter
  13. assert active(GuardedExit.main_region.A)
  14. guard = true
  15. raise e
  16. cycle
  17. assert active(GuardedExit.main_region.B)
  18. assert done
  19. }
  20. }