Category Archives: C#

Problems running .NET 4.0 tests using NUnit 2.5 with (or without) Continuous Testing?

NUnit 2.5 up to and including 2.5.4 fails to properly detect certain revisions of .NET 4.0, causing it to crash. The issue is documented in this bug report on LaunchPad. The bug has been fixed in 2.5.5 and later, so … Continue reading

Posted in C#, Continuous Testing, TDD | Tagged , , , , | Leave a comment

Mocking HtmlHelper in ASP.NET MVC 2 and 3 using Moq

Still having trouble mocking HtmlHelper? This is an update to my previous post on mocking HtmlHelper way back when ASP.NET MVC RC1 was released. Eric notified me through a comment on the post and a question on StackOverflow that the … Continue reading

Posted in C#, Code, Technical | Tagged , , , , , , , | Leave a comment

Copyable available on GitHub

People actually download and use Copyable, and they tend to use it in scenarios I haven’t used it in. This results in bug reports and patch submissions. So far, these have been given to me by e-mail or by blog … Continue reading

Posted in Announcements, C#, Code, Technical | Tagged , , , , , , , , | 2 Comments

Minimalistic MapReduce in .NET 4.0 with the new Task Parallel Library (TPL)

Among the news in .NET 4.0 are several additions by the Parallel Computing Platform Team. As I wandered through the documentation of the Task library with cloud computing and parallelism buzz in the back of my head, I got the … Continue reading

Posted in C#, Code, Concurrency, Technical | Tagged , , , , , , | Leave a comment

RSA using BouncyCastle

Trying to do RSA using BouncyCastle, but struggling to find your way around the API? In a previous post (see here) I pondered why the RSA implementation in System.Security.Cryptography is restricted to only the most common usage scenarios. I mentioned … Continue reading

Posted in C#, Code, Technical | Tagged , , , , , | 21 Comments