A couple of weeks ago
Mike Francis posted some information on the Windows Team Blog about
using advanced protection in your applications being distributed through the Windows Marketplace for Mobile. One of the things that he notes in his post is that presently there's no way for you to test the code path that gets executed if the necessary certificate is installed. I thought of a work around for this, but for it to work you need to have at least one application that has passed certification. Install your application from the Marketplace and it will install the license for you. In the application that you are still developing [temporarily] set the application ID to be the same as the application that you've already installed on the device. When you run the application it will find a valid certificate. Just remember to change it back to the applications actual ID before you send it through certification.
CodeProject
Tags: Windows Mobile, Marketplace