Using C# anonymous types to assert complex results in your unit tests

Does this sounds familiar to you: You come to work early(ish) in the morning - ready to apply a new technology you've just learnt about - just to find out that you can't. Your frustration grows as you understand that in order to use this "new and shiny" some adjustments must be made and what … Continue reading Using C# anonymous types to assert complex results in your unit tests

How to count the number of event invocations using Rx

A while ago I've needed to count the number of events arriving from an external system and perform a specific task once a specific threshold has been reached. I've needed to count groups of events each group had it's own unique key. Although I might have been able to solve this problem using a dictionary … Continue reading How to count the number of event invocations using Rx

New Pluralsight course: Advanced C++ Mocking Using Google Mock

My latest course: Advanced C++ Mocking Using Google Mock was published during the weekend. After finishing my very first Pluralsight course I knew I want to author another one. I've been working with C++, Java and .NET developers for the last five years, teaching about clean code, design patterns and unit testing. I've seen good developers struggle with TDD, … Continue reading New Pluralsight course: Advanced C++ Mocking Using Google Mock

What to do when Visual Studio 2017 debugger won’t attach to Docker

We've been developing .NET Core micro-services for a few months. Obviously we've decided to use Docker for Windows for deployment. Don't get me wrong I still find the experience amazing: Write code, and immediately debug your code running on Docker, it got to a point I no longer think about this amazing integration - write … Continue reading What to do when Visual Studio 2017 debugger won’t attach to Docker

Using conditional breakpoints to filter exceptions during debugging

With every new version the C# language has grown and improved. The last version so a.k.a C# 6 has brought some of my favorite features. And with C# 7 just around the corner I know there's more to come. One of the new useful features added to C# is the ability to filter exceptions. Consider … Continue reading Using conditional breakpoints to filter exceptions during debugging