Tag: Testing

  • Encapsulation Practices When Mocking Queries

    Encapsulation Practices When Mocking Queries

    As a developer and unit tester, I agree with the TDD goal to test only the interface of a class and ignore the private methods. Those private methods are implementation details of the class and can change with any refactoring without affecting the actual public method result and hence do not need tested if you…