mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 22:48:07 -05:00
Manually create .source2 dir for unit tests (#3599)
Fixes public tests failing because of missing directory.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user