1

Nmock Gotcha about Reference Parameters

I wrote a method in a view that cause me no end of grief when testing its presenter the other day. I’ll elaborate on this a little more when I get the time but for now, here are the bones of the issue: public bool TrySetSummaryContent(string content, out Exception raisedError)         {             raisedError = null;             try             {                 webBrowser.DocumentText = content;             } …

Upgrading to Visual Studio 2008

Visual Studio 2008 allows you to work on .net 2 projects without conversion to the new .net 3.5 framework, but there are a couple of issues to look out for. When you open a 2005 solution file in Orcas Beta 2, you will find that it wants to convert the solution and project files. You can then choose whether to …

Resharper

Having used Resharper for about 2 months I can definitely recommend it. It’s a hard one to describe because as soon as you mention the words “Productivity” and “Tool” people tend to switch off. Simply put, it enhances the VS2005 IDE and makes common tasks much more straightforward. I am primarily using it with C# although VB.NET is partially supported …

Visual Studio 2008

OK, so I have no first-hand proof of this yet, but there are certainly some promising features that we can expect with VS2008. For me the main ones (for asp.net development) are: Improved design-time support for CSS Generally faster Designer LINQ Javascript Intellisense Scott Guthrie has blogged about several of these features so (as always) I recommend checking out his blog. This week …

Web Client Software Factory 1.1 Released

From the Microsoft Patterns and Practices Team comes the Web Client Software Client Factory June 2007 Release. WCSF makes use of Guidance Automation, Application Bocks and Libraries. It makes developing a composite Web Application much easier and automates several (otherwise laborious) processes whilst also offering advice and guidance on various topics. I have found it makes implementing the Model View …

The .net Framework

OK, so we can argue until we’re blue in the face about this one. Some people love .net, some hate it, most though recognise it’s strengths and can learn to work around it’s weaknesses. Probably the main benefit of .net is the framework itself that saves you re-inventing wheels every time you want to achieve something. As you would expect, given the …

Test Driven Development

It can take a little while to understand the concepts and how to implement TDD, but once you do, it generally makes your software development process more robust and helps to minimise “bad” code. In common usage, the term TDD refers to the process of writing unit tests before you start writing your actual code. The idea being that by defining …

Rhino Mocks

A lot of people (myself included) find the hardest part about Test Driven Development is getting started with it. It’s usually pretty easy to pick up the fundamental principles of it; write a failing test first, make it pass, refactor your code, check the test still passes etc. but it’s not so easy to actually start writing your own (useful) …

Scott Guthrie’s Blog

If you’re a .net developer (and especially if you’re an asp.net programmer) then Scott Guthrie’s blog is an excellent source of news/information. Scott is now a General manager for various Microsoft products/technologies including ASP.NET, Silverlight and IIS 7.0 and his posts always make for interesting reading. You can view it here (or check out the RSS feed on the right hand …