@@ -658,6 +658,21 @@ MolComponentImplTest >> testStart2 [
658658 self assert: component componentName equals: #compA .
659659]
660660
661+ { #category : #' tests - component creation' }
662+ MolComponentImplTest >> testStartWithGeneratedName [
663+
664+ | instance instance2 |
665+ instance := MolCompleteComponentImpl startWithGeneratedName.
666+ self assert: instance componentName notNil.
667+ self assert: instance componentName isSymbol.
668+
669+ instance2 := MolCompleteComponentImpl startWithGeneratedName.
670+ self assert: instance2 componentName notNil.
671+ self assert: instance2 componentName isSymbol.
672+ self deny: instance componentName equals: instance2 componentName.
673+
674+ ]
675+
661676{ #category : #' tests - component creation' }
662677MolComponentImplTest >> testStartWithName [
663678
@@ -706,6 +721,7 @@ MolComponentImplTest >> testStartWithWrongNames [
706721
707722{ #category : #' tests - component creation' }
708723MolComponentImplTest >> testStop [
724+
709725 MolCompleteComponentImpl start.
710726 MolCompleteComponentImpl stop.
711727 self assert: (MolUtils instanceOf: MolCompleteComponentImpl ) equals: nil .
@@ -715,3 +731,16 @@ MolComponentImplTest >> testStop [
715731 self assert: (MolUtils instanceOf: MolCompleteComponentImpl named: #compA ) equals: nil .
716732
717733]
734+
735+ { #category : #' tests - component creation' }
736+ MolComponentImplTest >> testStopInstance [
737+
738+ | instance |
739+ instance := MolCompleteComponentImpl start.
740+ instance stop.
741+ self assert: (MolUtils instanceOf: MolCompleteComponentImpl ) equals: nil .
742+
743+ instance := MolCompleteComponentImpl start: #test .
744+ instance stop.
745+ self assert: (MolUtils instanceOf: MolCompleteComponentImpl ) equals: nil .
746+ ]
0 commit comments