I had a fun task a couple of weeks ago, simplifying some code that another dude wrote. It’s always more fun to optimize the hell out of other people’s code, right? The problem code was pretty much a proof of concept and no considerations about good or bad design had gone into writing it. The… Read more »
Posts Tagged: ReSharper
An introduction to QUnit
One of the areas that I never really dug into is unit testing JavaScript code. I have a background as a backend developer and for me, NUnit has been sufficient for years. During the last couple of years, I started implementing a few websites and also switched my working place from Trifork to eBay so… Read more »
Sharing R# Live Templates With Your Team
I found myself repeatable adding the same Live Template to R# over and over again: The unit-test template. This template adds a method with a method name starting with Can as well as the arrange/act/assert comments, which I’m pretty much in love with. Each time I re-install my old machine or simply get a new one, this is the… Read more »
Avoid ReSharper warning when doing multiple asserts
Since I started writing my NUnit asserts using Assert.That* instead of Assert.Are*, I’ve been hooked on the new syntax. The constraint API makes asserts readable and helps you specifying the expected and actual values at their proper places. One thing that always displeased my eye for perfection, was the R# warning shown when doing multiple… Read more »