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 -

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

objective c - iPhone and it's wireless area -