Just a short notice. If you are using Resharper 5.1 under Windows7 and xunit.contrib and your unit tests are not executed anymore in VS2010 you need to check the following:
- Close all running VS2010 instances
- Upgrade to latest xunit.contrib for Resharper 5.1
- If you have xunit.contrib under Program Files\Jetbrains\Resharper\..\Bin\Plugins then move them to
[Root]:\Users\[YourUser]\AppData\Roaming\JetBrains\ReSharper\v5.1\vs10.0\Plugins\XunitContrib
- Open VS2010 again and you should be able to run the unit tests in unit test runner of Resharper again.
Hope that helps
.NET, Announcement
Resharper, VS2010, Windows7, Xunit, Xunit.Contrib
I’m going to speak about code quality (see my short version of the presentation) at the conference BASTA!
BASTA! is mainly focused on .NET technology and gives you the opportunity to see and speak with a wide range of technology experts.
If you have any feedback of what you are missing in my short presentation, please write a comment here or on the post with the presentation. The short version takes about 30 minutes and my speak at BASTA! is scheduled for 1 hour and 15 minutes. I will mainly show real life examples of the theory shown in the short version. But if you want to here something specific, ask for it
I’ll probably will publish the long version on this blog, too – for all of you not joining the conference.
So long…
.NET, Agile, Announcement
.NET, Agile, Clean Code, Conference, Test Driven Development
I have compiled two cheat sheets about clean code (the ones mentioned in my post about Code Quality!).
The first covers clean code – code that is easy readable and keeps changeable. The second is about Test Driven Development. Both cheat sheets list principles, patterns, practices and smells.
You can download them now from the web site of my company – bbv Software Services AG: Clean Code, Clean TDD.
Take a look!
I’d like to read your feedback in the comments section…

(just an unreadable preview
– click on link in text above)
.NET, Agile, Test Driven Development
.NET, Architecture, Clean Code, Design, TDD, Test Driven Development, unit testing
The .NET component library bbv.Common (open source – Apache License 2.0) provides a powerful hierarchical state machine.
Its features are:
- value type based (enums, ints, …) resulting in single class state machines.
- actions
- on transitions
- entry and exit actions (parametrizable)
- transaction guards
- hierarchical
- different history behaviours to initialize state always to same state or last active state
- fluent definition interface
- synchronous/asynchronous state machine
- passive state machine handles state transitions synchronuously
- active state machine handles state transitions asynchronously on the worker thread of the state machine
- configurable thorough logging simplifies debugging using log4net (can be replaced easily with custom logging)
- state machine report for textual description of state machine

.NET, Software
.NET, bbv.Common, state machine
bbv.Common – a .NET library containing components for
- (a)synchronous loosly coupled event notifications (event broker),
- hierarchical state machines,
- active objects and asynchronous workers to build robust multi-threaded applications,
- context based loosely coupled rule engines
- and much more
has move from sourceforge.net to Google Code.
Check out the project at http://code.google.com/p/bbvcommon/
Join the discussion at http://groups.google.com/group/bbvcommon
.NET
.NET, bbv.Common
Some of the blog posts recently declared NAnt as a dead project. But I can assure you that NAnt is not dead!
Some days ago NAnt 0.90 RC1 has been released. Check it out: http://nant.sourceforge.net/
And what about NAnt and .NET 4.0? Look at this blog post

.NET, Announcement
.NET 4.0, NAnt
Yesterday, I attended at TechDays 2010 in Basel,Switzerland, an outstanding session. Neno Loje, a software project manager and developer from Germany talked about project- and requirementsmanagement. His presentation plattform was Visual Studio 2010 combined with Team foundation server 2010, both available in beta-status.
First of all: I was blowed away. I never really worked with Visual studio before, but was I saw was outstanding. Because of some Java-Stuff I have to use NetBeans IDE in our Java-Courses at university. But Visual studio seemed to go much further as NetBeans or Eclipse. All the little gadgets you get inside the program.
Team foundation server 2010 is now able to work with hierarchy items and requirements. MS added some ressource management tools to have better team management inside the team foundation server. And simply everything makes sense (at least to me as a abolute rookie).
What I want to do now is to set up an environment to get in touch with all the details of this new platform. Even if I know that I probably never will develop bigger applications I want to get a better look on whats inside this team management tool.
Once I’m started with the plattform I’ll try to catch some impression about the whole system and share my rookie impressions with all the readers here. I hope you won’t laugh
.NET, Software
Team foundation server 2010, Tech Days 2010, Visual Studio 2010
We use Coding Katas in Coding Dojos to improve our programming skills. This includes skills in software design, refactoring, Test Driven Development, Mocking, tool usage and a lot of other tiny stuff.
However, I found only a few Katas, especially Katas including the need for mocks (see for example http://codingkata.org/). Most Katas are very algorithmic, which is good for learning TDD. But its bad for learning how to use mocks.
Therefore, I started to invent my own Mocking Katas. I use these in my training courses on Test Driven Development.

.NET, Test Driven Development
Kata, Mocking, Test Driven Development, unit testing
Updated: Something went wrong with the code snippets. Now it’s okay.
Today, we”l have a look at nested views in my series on agile UI development in .NET using an extended MVVM pattern (table of contents).
There are two kinds of nested views:
- contextually nested views and
- hierarchically nested views (master-detail scenarios)

.NET, Agile, Architecture
.NET, Agile, Architecture, Design, User Interface, WPF
We got the following geek question from Henrik:
Hi,
Thanks for sharing this preview of the MockStyle.Stub feature!
Its exactly was I was looking for when I googled this page,
so now I just can't wait for a release with this included
I tried to find some information on futre release plans but could not find any.
Could anybody help me out? When could we3 expect a new NUnit
supporting MockStyle.Stub?
Cheers!
Henrik
The answer to this question is a bit complicated. Let me tell you why:
The current development team of NMock2 (Thomas, Peter and me) will not actively continue to develop NMock2. We’ll still provide basic support (bug fixes) but no new features. However, we have planned to make one last release (including the Stub feature) when we are sure that it works in our projects. This will be soon because we didn’t have a new defect in the last two months or so.
The reason why we have lost interest is that Moq has gained a lot of momentum and has a much broader community support. Furthermore, Moq provides some basic improvements that we cannot simply add to NMock2: besides the type safe, refactoring friendlier syntax, it allows very clean AAA (Arrange, Act, Assert) unit tests.
On the other side, there exists the NMock3 project on CodePlex that adds a type-safe syntax wrapper around NMock2. Check it out, when you already use NMock2 in your project.
So for short: the release including the Stub feature will be available soon, but it will also be the last release.
If you can’t wait until the official release then get the code from the subversion repository and start the build.release.cmd, et voila!
Happy mocking (whatever framework you use)
Urs
.NET, Ask a geek
NMock2