locked
Unit Test Methods in CRM RRS feed

  • Question

  • Hello all,

    We have been creating unit test methods using Visual Studio 2013 to test the functionalities written in the plugin code

    In one of the methods we needed to test the HTTPUtility.HTMLEncode was happening correctly, we found that when we executed the same piece of code from test method the encoding of certain characters like \n,\r were not happening, while the same when executed in CRM was running perfectly fine. 

    Has anyone of you come across such difference in behaviour of HTTPUtility.HTMLEncode when run from CRM and from an unit test method(or any other external code)?

    Thanks in Advance

    Tuesday, January 13, 2015 4:15 AM