Test-driven development – link to public interface

It is not possible to add the new link because it would replace an existing, longer link.

Line 1: Line 1:
===Code visibility===
===Code visibility===
{{Main|Unit_testing#Code_Visibility}}
{{Main|Unit_testing#Code_Visibility}}
In test-driven development, writing tests before implementation raises questions about testing [[access modifiers|private methods]] versus testing only through [[Interface (computing)|public interfaces]]. This choice affects the design of both test code and production code.
In test-driven development, writing tests before implementation raises questions about testing [[access modifiers|private methods]] versus testing only through [[public interface]]s. This choice affects the design of both test code and production code.