Unit Testing ASP.Net MVC Action result with call to Server.UrlDecode -


We are trying to write unit tests in our ASP.NET MVC project.

Server.UrlDecode to call in some methods controller

This unit is called from the test when a redundant reference fails with the exception.

Does anyone have a solution for this?

Use the static HttpUtility class and its UrlDecode method.

  HttpUtility.UrlDecode (mystring);  

Comments

Popular posts from this blog

php - multilevel menu with multilevel array -

c# - TypeConverter in propertygrid only converts from string, not to -

jQuery UI: Datepicker month format -