Category Archives: Unit Testing

Posts related to Unit Testing

Concurrent Unit Tests with Service Locator

My talk at Microsoft Summit created a nice discussion with some of the participants about writing isolated unit tests when using the Service Locator. It started from the part where I was showing how the AppBoot helps in dependencies management by … Continue reading

Posted in .NET, Design, Technical, Unit Testing | Tagged , , , , | Leave a comment

Unit Testing on Top of Entity Framework DbContext

When writing unit tests one of the challenges is to isolate your tests from everything. To isolate them from the code that is not in their target and also from the other tests. As Roy Osherove puts it in his … Continue reading

Posted in .NET, Technical, Unit Testing | Tagged , , , , | Leave a comment

Unit Testing Training

Unit Testing has been one of the dearest technical subjects for me in the past years. A great influencer was a TDD Workshop lead by J. B. Rainsberger to which I was lucky enough to attend, somewhere in 2010. It … Continue reading

Posted in Technical, Training, Unit Testing | Tagged , , , , | Leave a comment

Why I Write Isolated Unit Tests

Most of the times when I talk about unit testing or I ask encourage my colleagues to write unit tests, I emphasis on writing GOOD Unit Tests which are easy to write, they test only one thing and they run … Continue reading

Posted in Technical, Unit Testing | Tagged , , , , , | Leave a comment

IT Camp – A Great Experience

IT Camp happened at the end of this week in Cluj. I am proud that the town I am living in hosts the biggest premium conference on Microsoft technologies in Romania. It gathered almost 400 participants, from which a significant … Continue reading

Posted in .NET, Unit Testing | Leave a comment

Mirrored Unit Tests

I’m not sure if the term of Mirrored Unit Tests actually exists, but I’ll explain in this post what I mean by it. You get this situation when you have a class under test, which has symmetric public methods, which … Continue reading

Posted in Unit Testing | Leave a comment

Good Unit Tests Ask For Quality Code

I’ve talked this weekend at Code Camp Cluj about good unit tests and quality code. Here are my slides and  here is the code I’ve demoed.

Posted in Uncategorized, Unit Testing | 2 Comments

Resharper templates for Unit Tests

I am sharing here my resharper templates that I use. You should be able to easily import them. The most useful one is the TestMethod template: It follows the unit test naming convention proposed by Roy Osherove in his book … Continue reading

Posted in Unit Testing | Leave a comment