In May this year, I was asked to take over as tech-lead on a project at the company I’m contracted out to. The current tech-lead resigned and decided to move on to greener pastures. What I discovered when I took over the reigns was a little unnerving… The solution is more than 5 years old, …
Tag Archive: unit testing
Jul
06
Mar
26
Achieving 100% code coverage when using NUnit and NCover
Something that has always annoyed me when trying to get 100% code coverage when testing a method that throws an expected exception, is that it exits the method before getting to the end of it (obviously). An illustration will aid what I’m talking about… With the above setup, calling repository.GetProjects() throws an InvalidOperationException, as projects …
