Sprout ClassThe book has now been published and the content of this chapter has likely changed substanstially.
You want to be able to test the logic easily but the component is too closely tied to its context to allow this.
Extract the logic you want to test into a separate component that is designed for testability and is independent of the context in which it is run.
Sprout Method[WEwLC] is a powerful technique, but in some tangle dependency situations, it isn't powerful enough. ... In these cases, you can create another class to hold your changes and use it from the source class.
Further ReadingFrom [WEwLC].
Copyright © 2003-2008 Gerard Meszaros all rights reserved