-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f267b4d
commit dd9be3a
Showing
8 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...Tests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessageIsNotUserMessage.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
testing | ||
testAddMembersMessageIsNotUserMessage | ||
|
||
| addMembersEvent addMembersMessage chat | | ||
|
||
chat := TCTMMocks mockBasicGroupChat. | ||
addMembersEvent := TCTMMocks mockMessageAddMembersFrom: {TCTMMocks mockUser1 id} to: chat id. | ||
addMembersMessage := TCCUserMessage newFromMessageEvent: addMembersEvent in: chat with: self core. | ||
|
||
self wantsToTest: (TCUMessage newFrom: addMembersMessage). | ||
self deny: self subject isUserMessage |
9 changes: 9 additions & 0 deletions
9
...ramClientTests-UI.package/TCTUMessageTests.class/instance/testTextMessageIsUserMessage.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
testing | ||
testTextMessageIsUserMessage | ||
|
||
| message | | ||
|
||
message := (TCTMMocks mockTextMessageWith: self core). | ||
|
||
self wantsToTest: (TCUMessage newFrom: message). | ||
self assert: self subject isUserMessage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters