In my previous article I explored the reasons why developers don’t to write unit tests, when they are developing code. In this article I want to discuss the reasons why you should write unit tests for the new code that you write or the bugs that you fix. First Scenario – I’m Fixing A Bug […]
Category: Unit Testing
Why Developers Don’t Write Unit Tests
When I started my career in software development 22 years ago this year, it seemed that unit testing adoption was rather patchy. Whether you wrote unit tests or not, depended upon the environment you worked in. So most developers only used to write unit tests if they worked on a project which mandated unit testing, […]
.Net Core – Testing Internal Methods
In the .Net Framework, the approach to unit testing internal methods or types was to add an InternalsVisibleTo attribute into the AssemblyInfo.cs file. For example look at the following line of code below: This all works fine in the .net Framework. However in .Net Core most of the settings in the AssemblyInfo file have moved […]