Skip to content

Conversation

@ekzm8523
Copy link

@ekzm8523 ekzm8523 commented Dec 22, 2022

Baseball 게임 구현 과제 제출합니다.

질문이 하나 있습니다.
최대한 캡슐화를 하여 내부를 보여주지 않게 하기 위해 private 메서드를 활용하고 있는데 Testing을 위해서 public으로 열어둔 메서드가 몇 개 있습니다.

private를 풀지 않고도 unit test를 진행할 수 있는 방법이 있기는 하지만 이게 권장되지는 않는 것 같아요.

private 메서드는 테스팅 하지 않는게 맞다는 도 있고 어떤 방식이 권장될까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant