void DirSeparator() { using (var pfs = new PhysFS("")) { Assert.NotNull(pfs.GetDirSeparator()); Assert.NotEqual("", pfs.GetDirSeparator()); } }
public void SetupFileSystems() { var seporator = filesystemLink.GetDirSeparator(); var BaseDataDir = Environment.CurrentDirectory + seporator + "GameData"; var UnPackedData = BaseDataDir + seporator + "Unpacked"; var Packed = BaseDataDir + seporator + "Packed"; var saveData = BaseDataDir + seporator + "SaveData"; filesystemLink.PermitSymbolicLinks(true); Directory.CreateDirectory(BaseDataDir); Directory.CreateDirectory(UnPackedData); Directory.CreateDirectory(Packed); Directory.CreateDirectory(saveData); filesystemLink.SetWriteDir(saveData); filesystemLink.Mount(UnPackedData, "", true); SetupPackedData(Packed); }
static bool GetDirSeparator(string[] args) { Console.WriteLine(physFS.GetDirSeparator()); return(true); }
public void DirSeparator() { using var pfs = new PhysFS(""); pfs.GetDirSeparator().Should().NotBeNullOrEmpty(); }