Visual Studio 2015 InvalidProgramException in Unit Test With Fakes
问题 I am using Visual Studio 2015 Enterprise RTM to write unit tests for a project that uses Unity Container. I have discovered that the simple act of adding a fakes assembly for Unity, not even actually using the fake, is sufficient to generate this exception: System.InvalidProgramException: Common Language Runtime detected an invalid program. Consider the following steps to reproduce: Using Visual Studio 2015 Enterprise RTM create a Unit Test project targeting .NET 4.6 Add the NuGet package