During development of your BizTalk solution, you can do some of the testing before you even deploy your solution. You can leverage the capabilities of testing in Visual Studio using, for instance, the Test Map menu item for testing a map. Besides that you can use the Unit Test functionality offered by Visual Studio. The Unit Testing Framework (http://msdn.microsoft.com/en-us/library/ms243147(v=VS.90).aspx) supports unit testing in Visual Studio and allows you to create unit tests (http://msdn.microsoft.com/en-us/library/ms182517.aspx). In this recipe, you will learn the test capabilities offered by Visual Studio in BizTalk projects. The following tasks will be shown in this recipe:
Validating an XML document instance
Testing a map
Unit test a schema
Download the code (BTS.Cookbook.Test.SchemaAndMap
) belonging to this book from the Packt website or use your own BizTalk project.