Manually create .source2 dir for unit tests (#3599)

Fixes public tests failing because of missing directory.
This commit is contained in:
Lorenz Junglas
2025-12-11 16:06:21 +01:00
committed by GitHub
parent 5c8aac6590
commit de71992f7b

View File

@@ -27,6 +27,9 @@ public class TestInit
Api.Init();
// Usually this, is created by native source 2, we have to do it manually here, as we don't init native source2 for this assembly.
System.IO.Directory.CreateDirectory( ".source2/" );
Application.IsUnitTest = true;
GlobalContext.Current.TypeLibrary = new TypeLibrary();