Tag Archive: ncover

Mar
26

Achieving 100% code coverage when using NUnit and NCover

exitpoint

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 …

Continue reading »