ConstOnlyInternalScope.sctunit 488 B

123456789101112131415161718192021222324252627
  1. testclass ConstOnlyInternalScope for statechart declarations.ConstOnlyInternalScope {
  2. /*
  3. * Test is the statechart is entered correctly.
  4. */
  5. @Test
  6. operation statechartEntry(){
  7. enter
  8. assert active(declarations.ConstOnlyInternalScope.main_region.A)
  9. }
  10. /*
  11. * Test is the statechart is entered correctly.
  12. */
  13. @Test
  14. operation stateTransition(){
  15. enter
  16. raise e : 1
  17. proceed 1 cycle
  18. assert active(declarations.ConstOnlyInternalScope.main_region.B)
  19. }
  20. }