Skip to content
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

amount를 private으로 만들기 #9

Closed
BBBOMi opened this issue Jun 24, 2020 · 0 comments
Closed

amount를 private으로 만들기 #9

BBBOMi opened this issue Jun 24, 2020 · 0 comments
Labels

Comments

@BBBOMi
Copy link
Owner

BBBOMi commented Jun 24, 2020

  1. 해결하고자 하는 목표
    • Dollar의 필드인 amount를 private으로 만들기

  1. 해당 이슈에서 한 작업
    • 개발된 기능을 오직 테스트를 향상시키기 위해서만 사용.
    • 두 테스트가 동시에 실패하면 망한다는 점을 인식.(testMultiplication2()와 testEquality()의 관계)
    • 위험 요소가 있음에도 계속 진행했음.
    • 테스트와 코드 사이의 결합도를 낮추기 위해, 테스트 하는 객체의 새 기능을 사용.
@BBBOMi BBBOMi added the step label Jun 24, 2020
BBBOMi added a commit that referenced this issue Jun 24, 2020
- 앞서 해왔던 작업을 이용하여 코드 변경(시나리오 내용X, 코드만 O)
BBBOMi added a commit that referenced this issue Jun 24, 2020
- 코드를 변경하며 캡슐화가 가능해진 부분을 캡슐화 진행
- 중복되는 테스트 케이스 제거
@BBBOMi BBBOMi closed this as completed Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant