Testing scope and visibility (AV1605, AV1622)
mainTo ensure tests remain resilient to refactoring, adhere to these visibility rules:
- Public APIs Only (AV1605): Test observable behavior through public APIs only. Never attempt to test private methods or internal state directly.
- Indirect Access (AV1622): If you need to verify internal implementation details, access them through the public API of the component that uses them, rather than accessing them directly.