Returning JsonResult From ASP.NET MVC 2.0 Controller and Unit Testing
This post will show how to return a simple Json result from an ASP.NET MVC 2.0 web project. It will show how to test that result inside a unit test and essentially pick apart the Json, just like a JavaScript (or other client) would do. It seems like it should be very simple (and indeed, [...]...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.