-
Notifications
You must be signed in to change notification settings - Fork 2
[Test] Add DomainTests #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
ParkSeongGeun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ณ ์ํ์ จ์ต๋๋ค :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MockRepository๋ค์ ๊ตฌํ์ ๋ณด๋ฉด Call Count๋ฅผ ์ฒดํฌํ๊ณ ์ ์๋ํ ๊ฒ ๊ฐ์๋ฐ, ์ค์ ํ
์คํธ์์๋ ์ฒดํฌํ๋ ๋ถ๋ถ์ด ์๋ค์!
๋น ๋จ๋ฆฌ์ ๊ฑธ๊น์? ๋ํ ๋จ์ Call Coutnt ์ฒดํฌ๋ฟ๋ง ์๋๋ผ ์ค์ ๋ก์ง์ ํ
์คํธ๊ฐ ํ์ํ ๊ฒ ๊ฐ์ต๋๋ค.
| override func setUp() { | ||
| sut = EmotionPromptGenerator() | ||
| } | ||
|
|
||
| override func tearDown() { | ||
| sut = nil | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
override ํจ์๋ฅผ ์ฌ์ฉํ๋๋ฐ super์ ํจ์ ํธ์ถ์ด ์๋ค์.
ํ์ฌ๋ ์๋ฌด๋ฐ ๋ฌธ์ ๊ฐ ์์ ์ ์์ง๋ง, ์ฝ๋์ ์ผ๊ด์ฑ๊ณผ ์ ์ง๋ณด์์ฑ์ ์ํด ๊ด๋ก์ ์ผ๋ก๋ผ๋ ํธ์ถํ๋ ๊ฒ์ด ์ด๋จ๊น์?
๋ค๋ฅธ ํด๋์ค๋ค์์๋ ๋ชจ๋ ๋ง์ฐฌ๊ฐ์ง์
๋๋ค.
override func setUp() {
super.setUp()
sut = EmotionPromptGenerator()
}
override func tearDown() {
sut = nil
super.tearDown()
}| var plainText: String! | ||
| var hashed: String! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ ๊ฐ์ tearDown ์์ ์ ์ด๊ธฐํ์์ผ์ฃผ์ง ์์๋ ๊ด์ฐฎ์๊ฐ์?
๐ ๊ด๋ จ ์ด์ ๋ฒํธ
๐ ์์ ์ ํ
๐ ์์ ๋ด์ญ (๊ตฌํ ๋ด์ฉ ๋ฐ ์์ ๋ด์ญ์ ๊ธฐ์ฌํฉ๋๋ค.)