public void Setup() { _map = IndexMap.FromFile(_file, x => false); var directory = new FileInfo(_file).DirectoryName; _map.EnterUnsafeState(directory); _map.LeaveUnsafeState(directory); }