For most .NET developers XML files are the sole means of enabling users to extend their application, why mot - it’s a “human readable” extendible format - after reading this book I know better… in DSLs in BOO Oren Eini a.k.a Ayende Rahien (or is it the other way around) explains what are DSLs (Domain … Continue reading Book review: DSLs in Boo: Domain-Specific Languages in .NET
Tag: .NET
Introducing CountdownEvent
The new .NET 4.0 has a lot of new multi-threaded goodness, one of which is the CountdownEvent, used to signal between thread just like the good old AutoResetEvent and ManualEvent. The big difference (as you might have already guessed) is that CountDownEvent can be used to signal after several set has been called. The reason … Continue reading Introducing CountdownEvent
Unit testing custom StyleCop rules using Typemock Isolator
I’ve never was a big fan of “coding standard” – Although I always thought that the same style should be kept throughout a project or even the entire company’s code base - the idea of forcing developers to write the same code based on a document nobody ever read seemed just wrong. Fast forward a … Continue reading Unit testing custom StyleCop rules using Typemock Isolator
Book review: Real-World Functional Programming
I’ve picked up Real-World Functional Programming because I wanted to learn F# and despite numerous attempts on my side I just couldn’t understand it. I understood the F# syntax and I knew how to write applications using F# but I just didn’t get it – I always thought that it was only suited for math … Continue reading Book review: Real-World Functional Programming
#Nose 1.1 Released
A while back I had a build script used to build a project from its sources and run automatic tests on that code. Each time a new test assembly was added I needed to add a line to my build script to run that assembly. From time to time I forgot to update my build … Continue reading #Nose 1.1 Released
How to data bind to property in WPF
One of the strengths of WPF is its data binding capabilities. Although data binding is not new (in fact winforms has some limited data binding support) WPF takes it to the next level. In this post I’ll show you how to bind an element to a property defined in the code behind. How it’s done? … Continue reading How to data bind to property in WPF
Why profiler API causes my .NET application to run as STA?
It seems I’m in a tip giving mood this week. I’d like to tell a story of a bug we had in Isolator… Last a user complained about a bug that prevented one of VS2010 cronies to work properly. After investigating this issue he found out that using Isolator caused this code: [MTAThread()]static void … Continue reading Why profiler API causes my .NET application to run as STA?
Getting started with Fake Objects – Part 2: How to create a fake object
In the previous post I’ve explained (briefly) what are fake objects and why they should be used – if you haven’t read it yet – I suggest you do so now. In a nutshell fake objects are used to break dependencies in unit tests to make the test faster, predictable and enable you to test … Continue reading Getting started with Fake Objects – Part 2: How to create a fake object
Getting started with Fake Objects – Part 1: why fake is better then mock
If you’ve been writing unit tests for a short while you might have noticed that writing good unit tests is hard. The object under test can be hard to create because it require dependencies that you just cannot provide or some complicated environment is needed just to make the test pass. When writing a unit … Continue reading Getting started with Fake Objects – Part 1: why fake is better then mock
How to run NUnit tests created with VS2010 and .NET 4
Today when writing tests for a new project built using VS2010 I had an interesting problem: NUnit would not run my unit tests because the assembly that contained my unit tests was compiled using a newer version of the .NET runtime. There are several solutions to solve this issue from downgrading my project to use … Continue reading How to run NUnit tests created with VS2010 and .NET 4


