Skip to content

Commit 01bcd8d

Browse files
committed
Adding test method for printOn
1 parent 5cec2eb commit 01bcd8d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Famix-Simple-Diff/FamixSimpleDifferenceTest.class.st

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,15 @@ FamixSimpleDifferenceTest >> testNullValues [
7474
self assert: nullPattern mooseName equals: 'Nothing'.
7575
self assert: nullPattern printString equals: 'Nothing'.
7676
]
77+
78+
{ #category : 'accessing' }
79+
FamixSimpleDifferenceTest >> testPrintOn [
80+
| additionDiff output expectedString |
81+
82+
additionDiff := FamixSimpleDifference createEntityAdded: 'Entity' actualValue: 'Actual'.
83+
output := additionDiff printString.
84+
expectedString := 'a FamixSimpleDifferenceEntityAddition(''Entity Addition'' -> Expected: Nothing | Actual: ''Actual'' | On: ''Entity'')'.
85+
86+
"strings should be equals"
87+
self assert: output equals: expectedString.
88+
]

0 commit comments

Comments
 (0)