How to properly unit test a .NET project with multiple target frameworks, given implementation differences among targets?
Consider a .NET class library that targets the following frameworks: .NET Framework 2.0 .NET Framework 4.6 .NET Standard 1.0 .NET Standard 1.3 .NET Portable Profile336 Let's not immediately worry about why this is the exact list of target frameworks. Supposing that the external API across all target frameworks is identical, but each individual target framework has some code that's unique to that framework, how do I properly write the unit tests that cover the code from all target frameworks? I'm running Visual Studio 2017 Community. I've cooked up a ready-to-go minimal sample on GitHub here