This is a follow up to my post yesterday. I was setting up some automated unit tests for BizTalk 2009 in Release mode. I received the following errors.
CIDemo.Schemas.InputSchema does not contain a definition for ‘ValidateInstance’ and no extension method ‘ValidateInstance’ accepting a first argument of type ‘CIDemo.Schemas.InputSchema’ could be found (are you missing a using directive or an assembly reference?)
CIDemo.Maps.Input_To_Output does not contain a definition for ‘TestMap’ and no extension method ‘TestMap’ accepting a first argument of type ‘CIDemo.Maps.Input_To_Output’ could be found (are you missing a using directive or an assembly reference?)
CIDemo.Maps.Input_To_Output does not contain a definition for ‘ValidateOutput’ and no extension method ‘ValidateOutput’ accepting a first argument of type ‘CIDemo.Maps.Input_To_Output’ could be found (are you missing a using directive or an assembly reference?)
This is because the value under Unit Testing: Enable Unit Testing are Configuration Specific as seen below. The default is False. So moving to Release mode reset the values.
I also noticed the Application Name is Configuration specific as well.
Just something to keep in mind when changing configurations in BizTalk 2009.
Interesting, for additional ideas about BizTalk Unit Tests see: http://whiteboardworks.com/?p=26