ExceptionsTesting code often needs white-box access to the tested class or module. Value aggregates ("C-style structs") that simply bundle data without providing any abstraction do not need to hide their data; the data is the interface. (See Item 41.) |