From: "Mauricio Fernández" Date: 2003-02-13T19:00:29+09:00 Subject: Re: Unit Testing Private Methods On Thu, Feb 13, 2003 at 08:16:22AM +0900, Mauricio Fern�ndez wrote: > On Thu, Feb 13, 2003 at 07:46:11AM +0900, Travis Whitton wrote: > > It seems that in order to be able to unit test a method it has to be > > publicly accessible. Is there a way to use test/unit to test private methods > > and instance variables? > > I used to believe that Unit Testing would consider things in a black-box > approach. Can somebody comment on that? Thinking on it again, I should have written "white-box approach testing only public methods" Correct? -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com But what can you do with it? -- ubiquitous cry from Linux-user partner