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

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -