You can define the logic in the .NET Standard project (do not use PCL, but use the .NET Standard Class library template in VS2017 RC), but then the unit test project must have its target platform (UWP / Desktop / Xamarin or others) instead of .NET Standard . For example, in VS2017 RC, a typical unit testing project might be a .NET Core console application.
source share