It’s been a while since I’ve tried a new Unit Testing framework. It seemed that between NUnit, XUnit & MSTest I had enough to choose from. I’ve always tried to be pragmatic when choosing a test framework for a new project and when suggesting one to a new client. Although all .NET unit testing framework … Continue reading MSTest V2 – First impressions
Tag: Unit tests
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
Comparing Two objects using Assert.AreEqual()
Anyone who ever googled (binged?) about unit testing have heard about the “one assert per test rule”. The idea is that every unit test should have only one reason to fail. It’s a good rule that help me write good, robust unit test – but like all such rules-of-the-thumb it’s not always right (just most … Continue reading Comparing Two objects using Assert.AreEqual()
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
When Mockito’s InjectMocks does not inject mocks
Looking back at the time wasted yesterday while trying to make a trivial functionality work makes me wonder if it was a good idea to begin with… It all started (and ended) yesterday while I was mentoring a team on the fine art of Java unit testing. We’ve decided to use Mockito’s InjectMocks due to … Continue reading When Mockito’s InjectMocks does not inject mocks
Upcoming speaking engagements – AgileTD, DevMotion & NDC London
I’m going to have a good time in the next couple of months – I have several interesting speaking opportunities right around the corner:In less than two days I’ll be traveling to Germany to attend AgileTD. This is my first time at that AgileTD but from what I hear it’s an amazing conference. This year … Continue reading Upcoming speaking engagements – AgileTD, DevMotion & NDC London
Upcoming speaking engagements – User groups, meetups & AgileTD
It’s been a while since my last local appearance – too long in my opinion. Luckily I have a chance to remedy that:August 19th: I’ll be speaking at the IL .NET Developers user group (IDNDUG) about Navigating the TDD alphabet soup. I’ll be speaking about TDD/BDD/ATDD, their origins, how (and when) to use them and … Continue reading Upcoming speaking engagements – User groups, meetups & AgileTD
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
Unit and integration are ambiguous names for tests–and that’s ok
In my not-so-distant past I needed to write a component which would control an air conditioning unit.My application needed to send commands to the external device (on, off, set temperature) and read information from it (room temperature, humidity etc.)And so I came with the following:It’s a bit simplistic but the idea was that the client … Continue reading Unit and integration are ambiguous names for tests–and that’s ok
AssertHelper V1 released
Exactly one year and four months passed since my first try at fixing the state of asserts in NUnit. You can read all about it in my post – One assert to rule them all.My intent was to create one assert that would automatically choose the right way to check test result (I didn’t invet … Continue reading AssertHelper V1 released
