In my Tests directory in my swift project, I have a directory for test cases and a directory for test files.
+ Tests
+ UnitTest
+ MySwiftTests.swift
+ SourceFiles
+ file1.xml
I need to create a FileManager to load 'file1.xml' in my MySwiftTests. My question is how to specify the SearchPathDirectory and SearchPathDomainMask in the url of the FileManager which is relative the the test cases?
func url(for: FileManager.SearchPathDirectory, in: FileManager.SearchPathDomainMask, appropriateFor: URL?, create: Bool) -> URL
https://developer.apple.com/documentation/foundation/filemanager