The real difference between NUnit and XUnit

I’ve just started yet another pet project and wanted to pick a unit testing framework (.NET). On a soon-to-regret whim I’m tried googling “NUnit vs. XUnit” and read the first 10 posts I got. They were informative and mostly correct, unfortunately all completely missed the one big difference between those two excellent unit testing frameworks… … Continue reading The real difference between NUnit and XUnit

Did you know that Visual Studio shows deadlocked tasks?

I didn’t…And it’s not a new feature – since it existed since freaking Visual Studio 2010!Yesterday during an unrelated meeting Alon Fliess showed a bunch of us developers how Visual Studio detects deadlocks in tasks (automatically) and shows the current task status in both Parallel Tasks and Tasks debug windows (duh).I got home late but … Continue reading Did you know that Visual Studio shows deadlocked tasks?

VS2015 Update 1 brings (back) parallel test execution

Yesterday I’ve installed the new VS2015 update and tried to make my machine talk to my win10 (IoT core) Raspberry PI. It didn’t help but that’s a story for another blog post – spoiler: it was a problem with my laptops Ethernet port.After the dust settled I’ve started reading about the new goodness that was … Continue reading VS2015 Update 1 brings (back) parallel test execution

Using NUnit and FakeItEasy to create fake objects automatically for your tests

From time to time I get to teach and mentor Java developers on the fine art of unit testing. There are many similarities when unit testing in Java and .NET but more interesting are the differences between the two. Faking objects in Java using MockitoOne of the well-used Java Isolation (Mocking) frameworks is called Mockito … Continue reading Using NUnit and FakeItEasy to create fake objects automatically for your tests

Strongly typed localized strings in universal apps

Back in the old days when the need for localized string arose, I would add a new string and use AppResources to access the correct string in code.In Windows Phone application (known today as Windows Phone Silverlight 8.0/8.1) I would do something like this:public void SomeMethod(){ var localizedString1 = AppResources.MyFirstSring; var localizedString2 = AppResources.AnotherString;}In the … Continue reading Strongly typed localized strings in universal apps