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 […]
Tag: UnitTesting
.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 […]