See #1 when you want to know how to fix this!
Repro sample of Roslyn behaving different when invoked through a CLI vs a UnitTest
The program executes without exceptions
✔️ The program executes without exceptions
The test passes
❌ The tests fails, a an exception is thrown due to errors in the compilation
See #1