forked from USIREVEAL/DiscOrDance
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from LucoMoro/DDRoot-test
Add tests for DDRoot + subclasses
- Loading branch information
Showing
2 changed files
with
156 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
" | ||
A DDGlobalConfigurationTest is a test class for testing the behavior of DDGlobalConfiguration | ||
" | ||
Class { | ||
#name : #DDGlobalConfigurationTest, | ||
#superclass : #TestCase, | ||
#category : #'DiscOrDance-Tests-Base' | ||
} | ||
|
||
{ #category : #test } | ||
DDGlobalConfigurationTest >> testLimitMessages [ | ||
| aConfiguration | | ||
aConfiguration := DDGlobalConfiguration new. | ||
aConfiguration limitMessages: true. | ||
self assert: aConfiguration limitMessages equals: true. | ||
] | ||
|
||
{ #category : #test } | ||
DDGlobalConfigurationTest >> testMessagesPerChannel [ | ||
| aConfiguration | | ||
aConfiguration := DDGlobalConfiguration new. | ||
aConfiguration messagesPerChannel: 250. | ||
self assert: aConfiguration messagesPerChannel equals: 250. | ||
] |
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