Funny, but not very fair: presumably a Windows VM with the lower core count would work as well.
I believe for non-production usage, Microsoft is okay with unlicensed or trial Virtual Machines and such. The idea being that if developers are testing their software in Windows, that’s better than the alternative (not testing their software in Windows).
Similarly, if willing to beta test versions of software, you can get Visual Studio for “Insiders” and test the Enterprise edition for free with a non-production license for as long as newer beta versions are made available. (Note: IANAL, this ain’t legal advice, read the terms and conditions on any Microsoft VMs or software installations)