     }
     
     func testGifFBFileParse() {
-        let filePath = NSBundle(forClass: FileBrowserTests.self).URLForResource("3crBXeO", withExtension: "gif")!
+        let filePath = Bundle(for: FileBrowserTests.self).url(forResource: "3crBXeO", withExtension: "gif")!
         let file = FBFile(filePath: filePath)
         XCTAssertEqual(file.filePath, filePath)
         XCTAssertEqual(file.isDirectory, false)

    func testCaseSensitiveExclusion() {
        let parser = FileParser.sharedInstance
        parser.excludesFileExtensions = ["gIf"]
        let directoryPath = NSBundle(forClass: FileBrowserTests.self).bundleURL
        let directoryContents = parser.filesForDirectory(directoryPath)
        for file in directoryContents {
            if let fileExtension = file.fileExtension {

    }
    
    func testDirectoryFBFileParse() {
        let filePath = Bundle(for: FileBrowserTests.self).bundleURL
        let file = FBFile(filePath: filePath)
        XCTAssertEqual(file.type, FBFileType.Directory)
    }
    
    func testDirectoryContentsParse() {
        let parser = FileParser.sharedInstance
        let directoryPath = Bundle(for: FileBrowserTests.self).bundleURL
        let directoryContents = parser.filesForDirectory(directoryPath)
        XCTAssertTrue(directoryContents.count > 0)
        let stitchFile = directoryContents.filter({$0.displayName == "Stitch.jpg"}).first
