How do I correctly setup C# unit tests for CRM 2011 plugins?

后端 未结 3 1521
猫巷女王i
猫巷女王i 2021-02-03 12:55

Trying to debug a plugin in CRM 2011 can be extremely difficult. Not only are there issues with having the .pdb files in the correct location on the server, but each time you m

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-03 13:46

    I serialize the plugin execution context to file for use with unit tests. There is a good project on codeplex that does this http://crm2011plugintest.codeplex.com/

    Makes debugging and unit testing easier and you can 'record' real world testing.

提交回复
热议问题