The BizTalk Map Test Framework has been developed by Maurice den Heijer. It enables developers to perform tests on their maps using template files and XPath queries. The framework offers a great deal of extensibility when using it within a Visual Studio Test Project.
A developer can define a large number of test cases to be applied upon the map and these test cases are run within a single method call. Hence, the productivity of testing a map is enhanced significantly. Also, the developer only needs to maintain two XML files (one source XML (that is, the input file) and a result XML (that is, the output file)). Both files are basically instances of a source schema and a destination schema of the map to be tested.
In this recipe, a BizTalk map will be tested through using the BizTalk Map Test Framework in the Visual Studio Test Project (that is, unit testing).