This document discusses unit testing practices for SharePoint 2010. It notes that SharePoint objects are difficult to test because they lack interfaces and are sealed classes. It introduces Pex and Moles mocking frameworks that can generate stubs for SharePoint objects using runtime instrumentation. The document demonstrates using SharePoint Mole Behaviors to pre-generate common SharePoint object behaviors. It observes that this approach saves time but behaviors may not be complete and unit tests can run slowly. It recommends building a facade in front of SharePoint and producing consistent behaviors by disassembling SharePoint if necessary.