using System;

  • Unit Testing JsonResult Actions

    Today I had to write a unit test for a Asp.net MVC controller that returned a JsonResult. The Controller’s code looked somewhat like this: [HttpPost] public JsonResult JsonData(Query query) { // .

    Read more…
  • Obfuscated JS Hello World CodeGolf

    Finally the codegolf Stackexchange site is in beta. So I decided to give it a try, as I found this nice codegolf: [](https://lh6.googleusercontent.com/_-AYvMXY8i7Q/TUtOiKTSVGI/AAAAAAAAAEA/RWA- _dMVaaE/s1600-h/golf%5B3%5D.png) So…. Behold my [solution](https://codegolf.stackexchange.com/questions/307/obfuscated-hello- world/453#453) with JavaScript:

    Read more…
  • jQuery.validation breaks jQuery 1.5 ajax API

    Today I found out (the hard way) that the use of the [jQuery.validation](http://bassistance.de/jquery-plugins/jquery-plugin- validation/) plugin breaks the jQuery.ajax API. Since the Asp.net MVC 3 uses jQuery.validation for its [unobtrusive validation](http://weblogs.asp.net/mikaelsoderstrom/archive/2010/10/06/unobtrusive- validation-in-asp-net-mvc-3.

    Read more…