Testing shared resources with xUnit and Moq

Source code Download source – 9 KB GitHub Introduction xUnit is widely used testing library and the post focuses attention how to write unit tests for classes that uses static properties or shared resources. Several scenarios are considered in the article. Background Solution uses C#7, .Net 4.6.1, NuGet packages Unity and CommonServiceLocator to implement ServiceLocator… Read More Testing shared resources with xUnit and Moq