This sample code outlines how to set up Continuous Integration, Automated Unit Tests, and to create an MSI Package using Team Foundation Server 2008 (TFS) with BizTalk Server 2009.
At a high level, this is what is happening in the end to end process.
A file is updated and checked in -> A build is started -> The build completes -> Defined unit tests are ran -> a MSI Package is created
This sample code goes along with a step-by-step blog post that outlines this process.
That blog post can be found here: http://www.biztalkgurus.com/blogs/biztalk/archive/2009/04/16/setting-up-continuous-integration-automated-unit-tests-and-msi-packaging-in-biztalk-2009.aspx